diff --git a/packages/bcp/src/cosmosconnection.spec.ts b/packages/bcp/src/cosmosconnection.spec.ts index 2f587d17..851e22a4 100644 --- a/packages/bcp/src/cosmosconnection.spec.ts +++ b/packages/bcp/src/cosmosconnection.spec.ts @@ -52,14 +52,13 @@ const alice = { * with multiple messages are found. */ const bob = { - mnemonic: - "economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone", - path: HdPaths.cosmosHub(4), + mnemonic: "remain fragile remove stamp quiz bus country dress critic mammal office need", + path0: HdPaths.cosmosHub(0), pubkey: { algo: Algorithm.Secp256k1, - data: fromBase64("Aum2063ub/ErUnIUB36sK55LktGUStgcbSiaAnL1wadu") as PubkeyBytes, + data: fromBase64("A0d/GxY+UALE+miWJP0qyq4/EayG1G6tsg24v+cbD6By") as PubkeyBytes, }, - address: "cosmos1hsm76p4ahyhl5yh3ve9ur49r5kemhp2r0dcjvx" as Address, + address: "cosmos1lvrwcvrqlc5ktzp2c4t22xgkx29q3y83lktgzl" as Address, }; describe("CosmosConnection", () => { @@ -283,7 +282,7 @@ describe("CosmosConnection", () => { const profile = new UserProfile(); const wallet = profile.addWallet(Secp256k1HdWallet.fromMnemonic(bob.mnemonic)); - const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path); + const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path0); const senderAddress = connection.codec.identityToAddress(sender); for (const i of [0, 1]) { @@ -311,7 +310,7 @@ describe("CosmosConnection", () => { const connection = await CosmosConnection.establish(httpUrl, defaultAddressPrefix, defaultConfig); const profile = new UserProfile(); const wallet = profile.addWallet(Secp256k1HdWallet.fromMnemonic(bob.mnemonic)); - const senderIdentity = await profile.createIdentity(wallet.id, defaultChainId, bob.path); + const senderIdentity = await profile.createIdentity(wallet.id, defaultChainId, bob.path0); const senderAddress = connection.codec.identityToAddress(senderIdentity); const unsigned = await connection.withDefaultFee({ @@ -418,7 +417,7 @@ describe("CosmosConnection", () => { const connection = await CosmosConnection.establish(httpUrl, defaultAddressPrefix, defaultConfig); const profile = new UserProfile(); const wallet = profile.addWallet(Secp256k1HdWallet.fromMnemonic(bob.mnemonic)); - const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path); + const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path0); const senderAddress = connection.codec.identityToAddress(sender); const unsigned = await connection.withDefaultFee({ @@ -508,7 +507,7 @@ describe("CosmosConnection", () => { const connection = await CosmosConnection.establish(httpUrl, defaultAddressPrefix, defaultConfig); const profile = new UserProfile(); const wallet = profile.addWallet(Secp256k1HdWallet.fromMnemonic(bob.mnemonic)); - const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path); + const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path0); const senderAddress = connection.codec.identityToAddress(sender); const recipient = makeRandomAddress(); @@ -720,7 +719,7 @@ describe("CosmosConnection", () => { const profile = new UserProfile(); const wallet = profile.addWallet(Secp256k1HdWallet.fromMnemonic(bob.mnemonic)); - const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path); + const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path0); // send transactions @@ -803,7 +802,7 @@ describe("CosmosConnection", () => { const profile = new UserProfile(); const wallet = profile.addWallet(Secp256k1HdWallet.fromMnemonic(bob.mnemonic)); - const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path); + const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path0); const recipientAddress = makeRandomAddress(); const send = await connection.withDefaultFee({ @@ -853,7 +852,7 @@ describe("CosmosConnection", () => { const profile = new UserProfile(); const wallet = profile.addWallet(Secp256k1HdWallet.fromMnemonic(bob.mnemonic)); - const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path); + const sender = await profile.createIdentity(wallet.id, defaultChainId, bob.path0); // send transactions