Skip to content

Commit

Permalink
chain id is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Oct 19, 2024
1 parent 263bf64 commit 14b0cff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Sources/XMTPiOS/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion Sources/XMTPiOS/SigningKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 14b0cff

Please sign in to comment.