From b945df137d2020ad0d1d65c8e31ea8ede8c9c398 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Tue, 6 Apr 2021 17:03:39 +0200 Subject: [PATCH] cosmwasm-launchpad: Update for hd wallet change --- .../cosmwasm-launchpad/src/cw3cosmwasmclient.spec.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/cosmwasm-launchpad/src/cw3cosmwasmclient.spec.ts b/packages/cosmwasm-launchpad/src/cw3cosmwasmclient.spec.ts index bd84ce30..0e87d4ba 100644 --- a/packages/cosmwasm-launchpad/src/cw3cosmwasmclient.spec.ts +++ b/packages/cosmwasm-launchpad/src/cw3cosmwasmclient.spec.ts @@ -247,7 +247,9 @@ describe("Cw3CosmWasmClient", () => { proposerWallet, contractAddress, ); - const voterWallet = await Secp256k1HdWallet.fromMnemonic(alice.mnemonic, makeCosmoshubPath(1)); + const voterWallet = await Secp256k1HdWallet.fromMnemonic(alice.mnemonic, { + hdPath: makeCosmoshubPath(1), + }); const voter = new Cw3CosmWasmClient(launchpad.endpoint, alice.address1, voterWallet, contractAddress); const toAddress = makeRandomAddress(); const msg = { @@ -292,9 +294,13 @@ describe("Cw3CosmWasmClient", () => { proposerWallet, contractAddress, ); - const voter1Wallet = await Secp256k1HdWallet.fromMnemonic(alice.mnemonic, makeCosmoshubPath(1)); + const voter1Wallet = await Secp256k1HdWallet.fromMnemonic(alice.mnemonic, { + hdPath: makeCosmoshubPath(1), + }); const voter1 = new Cw3CosmWasmClient(launchpad.endpoint, alice.address1, voter1Wallet, contractAddress); - const voter2Wallet = await Secp256k1HdWallet.fromMnemonic(alice.mnemonic, makeCosmoshubPath(2)); + const voter2Wallet = await Secp256k1HdWallet.fromMnemonic(alice.mnemonic, { + hdPath: makeCosmoshubPath(2), + }); const voter2 = new Cw3CosmWasmClient(launchpad.endpoint, alice.address2, voter2Wallet, contractAddress); const toAddress = makeRandomAddress(); const msg = {