Skip to content

Commit

Permalink
fix the lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Oct 20, 2024
1 parent 14b0cff commit b986370
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Sources/XMTPiOS/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ 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 accountAddress = account.isSmartContractWallet ?
"eip155:\(String(describing: account.chainId)):\(account.address.lowercased())" :
account.address
let inboxId = try await getOrCreateInboxId(options: options, address: accountAddress)

return try await initializeClient(
Expand All @@ -209,7 +211,9 @@ public final class Client {
}

public static func buildV3(address: String, chainId: Int64? = nil, options: ClientOptions) async throws -> Client {
let accountAddress = if(chainId != nil) { "eip155:\(String(describing: chainId)):\(address.lowercased())" } else { address }
let accountAddress = chainId != nil ?
"eip155:\(String(describing: chainId)):\(address.lowercased())" :
address
let inboxId = try await getOrCreateInboxId(options: options, address: accountAddress)

return try await initializeClient(
Expand Down

0 comments on commit b986370

Please sign in to comment.