From e1dc2507b746154d1cc0a00b13da46851d792429 Mon Sep 17 00:00:00 2001 From: Luca Spinazzola Date: Fri, 30 Sep 2022 00:55:49 -0400 Subject: [PATCH] update SigningCosmWasmClient.init functions to take chainId --- .../io/eqoty/secretk/client/SigningCosmWasmClient.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/secretk/src/commonMain/kotlin/io/eqoty/secretk/client/SigningCosmWasmClient.kt b/secretk/src/commonMain/kotlin/io/eqoty/secretk/client/SigningCosmWasmClient.kt index 7876dee..576aa76 100644 --- a/secretk/src/commonMain/kotlin/io/eqoty/secretk/client/SigningCosmWasmClient.kt +++ b/secretk/src/commonMain/kotlin/io/eqoty/secretk/client/SigningCosmWasmClient.kt @@ -404,7 +404,8 @@ private constructor( senderAddress: String, wallet: Wallet, seed: UByteArray? = null, - broadcastMode: BroadcastMode = BroadcastMode.Block + broadcastMode: BroadcastMode = BroadcastMode.Block, + chainId: String? = null ): SigningCosmWasmClient { ensureLibsodiumInitialized() return SigningCosmWasmClient( @@ -412,7 +413,8 @@ private constructor( senderAddress, wallet, EnigmaUtils(apiUrl, seed ?: EnigmaUtils.GenerateNewSeed()), - broadcastMode + broadcastMode, + chainId ) } @@ -421,7 +423,8 @@ private constructor( senderAddress: String, wallet: Wallet, enigmaUtils: EncryptionUtils, - broadcastMode: BroadcastMode = BroadcastMode.Block + broadcastMode: BroadcastMode = BroadcastMode.Block, + chainId: String? = null ): SigningCosmWasmClient { ensureLibsodiumInitialized() return SigningCosmWasmClient( @@ -429,7 +432,8 @@ private constructor( senderAddress, wallet, enigmaUtils, - broadcastMode + broadcastMode, + chainId ) } }