From 14b0cffe3bca9bfd134c08458b269686fc75a121 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Sat, 19 Oct 2024 12:54:11 -0700 Subject: [PATCH] chain id is optional --- Sources/XMTPiOS/Client.swift | 2 -- Sources/XMTPiOS/SigningKey.swift | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Sources/XMTPiOS/Client.swift b/Sources/XMTPiOS/Client.swift index f87c0e3f..d7a6b257 100644 --- a/Sources/XMTPiOS/Client.swift +++ b/Sources/XMTPiOS/Client.swift @@ -198,8 +198,6 @@ public final class Client { public static func createV3(account: SigningKey, options: ClientOptions) async throws -> Client { let accountAddress = if(account.isSmartContractWallet) { "eip155:\(String(describing: account.chainId)):\(account.address.lowercased())" } else { account.address } - - let inboxId = try await getOrCreateInboxId(options: options, address: accountAddress) return try await initializeClient( diff --git a/Sources/XMTPiOS/SigningKey.swift b/Sources/XMTPiOS/SigningKey.swift index 70d29de7..5c720edf 100644 --- a/Sources/XMTPiOS/SigningKey.swift +++ b/Sources/XMTPiOS/SigningKey.swift @@ -24,7 +24,7 @@ public protocol SigningKey { var isSmartContractWallet: Bool { get } /// The name of the chainId for example "1" - var chainId: Int64 { get } + var chainId: Int64? { get } /// The blockNumber of the chain for example "1" var blockNumber: Int64? { get }