From c172428dc6fdaea85582a5cdb27c6414ad89b270 Mon Sep 17 00:00:00 2001 From: Jerry Liu <33166884+Ethella@users.noreply.github.com> Date: Mon, 24 Jul 2023 11:04:43 -0700 Subject: [PATCH] Fix locale missin the url (#30) --- MagicSDK.podspec | 2 +- Sources/MagicSDK/Core/Relayer/URLBuilder.swift | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MagicSDK.podspec b/MagicSDK.podspec index f8694dd..19ce35d 100644 --- a/MagicSDK.podspec +++ b/MagicSDK.podspec @@ -3,7 +3,7 @@ # Pod::Spec.new do |s| s.name = 'MagicSDK' - s.version = '9.1.0' + s.version = '9.1.1' s.summary = 'Magic IOS SDK' s.description = <<-DESC diff --git a/Sources/MagicSDK/Core/Relayer/URLBuilder.swift b/Sources/MagicSDK/Core/Relayer/URLBuilder.swift index 658d302..e8e8ffa 100644 --- a/Sources/MagicSDK/Core/Relayer/URLBuilder.swift +++ b/Sources/MagicSDK/Core/Relayer/URLBuilder.swift @@ -63,7 +63,7 @@ public struct URLBuilder { enum CodingKeys: String, CodingKey { case apiKey = "API_KEY" case ethNetwork = "ETH_NETWORK" - case bundleId, host, sdk + case bundleId, host, sdk, locale } func encode(to encoder: Encoder) throws { @@ -74,6 +74,7 @@ public struct URLBuilder { try container.encode(apiKey, forKey: .apiKey) try container.encode(URLBuilder.host, forKey: .host) + try container.encode(locale, forKey: .locale) if let node = customNode {