diff --git a/Sources/TorusUtils/TorusUtils.swift b/Sources/TorusUtils/TorusUtils.swift index 27edc290..051620ad 100644 --- a/Sources/TorusUtils/TorusUtils.swift +++ b/Sources/TorusUtils/TorusUtils.swift @@ -41,6 +41,7 @@ public class TorusUtils { /// - Throws: `TorusUtilError.invalidInput` public init(params: TorusOptions, loglevel: OSLogType = .default) throws { SentryUtils.initSentry() + TorusUtils.clientId = params.clientId var defaultHost = "" if params.legacyMetadataHost == nil { if case let .legacy(urlHost) = params.network { @@ -70,8 +71,6 @@ public class TorusUtils { enableOneKey = params.enableOneKey legacyMetadataHost = defaultHost signerHost = params.network.signerMap + "/api/sign" - - TorusUtils.clientId = params.clientId } internal static func isLegacyNetworkRouteMap(network: TorusNetwork) -> Bool { diff --git a/Sources/TorusUtils/analytics/SentryUtils.swift b/Sources/TorusUtils/analytics/SentryUtils.swift index 914e7b87..ea0c8e03 100644 --- a/Sources/TorusUtils/analytics/SentryUtils.swift +++ b/Sources/TorusUtils/analytics/SentryUtils.swift @@ -47,7 +47,6 @@ class SentryUtils { } } - // Static method to close Sentry (typically used during app termination) static func close() { SentrySDK.close() }