Skip to content

Commit

Permalink
update SigningCosmWasmClient.init functions to take chainId
Browse files Browse the repository at this point in the history
  • Loading branch information
luca992 committed Sep 30, 2022
1 parent a9f1ef4 commit e1dc250
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,15 +404,17 @@ private constructor(
senderAddress: String,
wallet: Wallet,
seed: UByteArray? = null,
broadcastMode: BroadcastMode = BroadcastMode.Block
broadcastMode: BroadcastMode = BroadcastMode.Block,
chainId: String? = null
): SigningCosmWasmClient {
ensureLibsodiumInitialized()
return SigningCosmWasmClient(
apiUrl,
senderAddress,
wallet,
EnigmaUtils(apiUrl, seed ?: EnigmaUtils.GenerateNewSeed()),
broadcastMode
broadcastMode,
chainId
)
}

Expand All @@ -421,15 +423,17 @@ private constructor(
senderAddress: String,
wallet: Wallet,
enigmaUtils: EncryptionUtils,
broadcastMode: BroadcastMode = BroadcastMode.Block
broadcastMode: BroadcastMode = BroadcastMode.Block,
chainId: String? = null
): SigningCosmWasmClient {
ensureLibsodiumInitialized()
return SigningCosmWasmClient(
apiUrl,
senderAddress,
wallet,
enigmaUtils,
broadcastMode
broadcastMode,
chainId
)
}
}
Expand Down

0 comments on commit e1dc250

Please sign in to comment.