Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 754febc

Browse files
committed
* change requested
1 parent 893ffdc commit 754febc

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Sources/MagicSDK/Core/Magic.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
import MagicSDK_Web3
99
import WebKit
1010

11+
12+
internal enum ProductType{
13+
case MA
14+
case MC
15+
}
16+
1117
/// An instance of the Magic SDK
1218
public class Magic: MagicCore {
1319

@@ -74,18 +80,13 @@ public class MagicConnect: MagicCore {
7480

7581
public class MagicCore: NSObject {
7682

77-
// MARK: - Property
7883
public var rpcProvider: RpcProvider
7984

8085
internal init(rpcProvider: RpcProvider) {
8186
self.rpcProvider = rpcProvider
8287
}
8388
}
8489

85-
internal enum ProductType{
86-
case MA
87-
case MC
88-
}
8990

9091
// Handles Specific RpcError
9192
extension Web3Response {

Sources/MagicSDK/Core/Relayer/URLBuilder.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ public struct URLBuilder {
1616

1717
let encodedParams, url: String
1818
static let host = "https://box.magic.link"
19-
// static let host = "http://192.168.0.106:3016"
2019

2120
public let apiKey: String
2221

2322
init(apiKey: String, customNode: CustomNodeConfiguration? = nil, ethNetwork: EthNetwork? = nil, locale: String, productType: ProductType) {
24-
let options = paramsEncodable(apiKey: apiKey, ethNetwork: ethNetwork, customNode: customNode, locale: locale, productType: productType)
2523

26-
let data = try! JSONEncoder().encode(options)
24+
let data = try! JSONEncoder().encode(paramsEncodable(apiKey: apiKey, ethNetwork: ethNetwork, customNode: customNode, locale: locale, productType: productType))
2725
self.init(data: data, host: URLBuilder.host, apiKey: apiKey, productType: productType)
2826
}
2927

0 commit comments

Comments
 (0)