From 181c7af9277be32976dee638a978a819edde059c Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 7 Jul 2022 16:04:47 +0200 Subject: [PATCH] Adapt gas values to Cosmos SDK 0.46 --- .../src/signingcosmwasmclient.spec.ts | 8 ++++---- .../stargate/src/signingstargateclient.spec.ts | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/cosmwasm-stargate/src/signingcosmwasmclient.spec.ts b/packages/cosmwasm-stargate/src/signingcosmwasmclient.spec.ts index 8f9884d0..9e66a9f5 100644 --- a/packages/cosmwasm-stargate/src/signingcosmwasmclient.spec.ts +++ b/packages/cosmwasm-stargate/src/signingcosmwasmclient.spec.ts @@ -688,7 +688,7 @@ describe("SigningCosmWasmClient", () => { }; const fee = { amount: coins(2000, "ucosm"), - gas: "180000", // 180k + gas: "222000", // 222k }; const memo = "Use your power wisely"; const result = await client.signAndBroadcast(alice.address0, [msgAny], fee, memo); @@ -745,7 +745,7 @@ describe("SigningCosmWasmClient", () => { }; const fee = { amount: coins(2000, "ucosm"), - gas: "180000", // 180k + gas: "222000", // 222k }; const memo = "Use your power wisely"; const result = await client.signAndBroadcast(alice.address0, [msgAny], fee, memo); @@ -1039,7 +1039,7 @@ describe("SigningCosmWasmClient", () => { }; const fee = { amount: coins(2000, "ucosm"), - gas: "180000", // 180k + gas: "222000", // 222k }; const memo = "Use your power wisely"; const signed = await client.sign(alice.address0, [msgAny], fee, memo); @@ -1072,7 +1072,7 @@ describe("SigningCosmWasmClient", () => { }; const fee = { amount: coins(2000, "ucosm"), - gas: "180000", // 180k + gas: "222000", // 222k }; const memo = "Use your power wisely"; const signed = await client.sign(alice.address0, [msgAny], fee, memo); diff --git a/packages/stargate/src/signingstargateclient.spec.ts b/packages/stargate/src/signingstargateclient.spec.ts index 08b33095..28f84249 100644 --- a/packages/stargate/src/signingstargateclient.spec.ts +++ b/packages/stargate/src/signingstargateclient.spec.ts @@ -155,7 +155,7 @@ describe("SigningStargateClient", () => { const memo = "Cross-chain fun"; const fee = { amount: coins(2000, "ucosm"), - gas: "180000", // 180k + gas: "222000", // 222k }; // both timeouts set @@ -204,7 +204,7 @@ describe("SigningStargateClient", () => { const memo = "Cross-chain fun"; const fee = { amount: coins(2000, "ucosm"), - gas: "180000", // 180k + gas: "222000", // 222k }; // both timeouts set @@ -265,14 +265,14 @@ describe("SigningStargateClient", () => { }; const fee = { amount: coins(2000, "ucosm"), - gas: "180000", // 180k + gas: "222000", // 222k }; const memo = "Use your power wisely"; const result = await client.signAndBroadcast(faucet.address0, [msgAny], fee, memo); assertIsDeliverTxSuccess(result); expect(result.code).toEqual(0); - expect(result.gasWanted).toEqual(180_000); - expect(result.gasUsed).toBeLessThanOrEqual(180_000); + expect(result.gasWanted).toEqual(222_000); + expect(result.gasUsed).toBeLessThanOrEqual(222_000); expect(result.gasUsed).toBeGreaterThan(100_000); }); @@ -347,7 +347,7 @@ describe("SigningStargateClient", () => { }; const fee = { amount: coins(2000, "ucosm"), - gas: "180000", // 180k + gas: "222000", // 222k }; const memo = "Use your power wisely"; const result = await client.signAndBroadcast(faucet.address0, [msgAny], fee, memo); @@ -599,7 +599,7 @@ describe("SigningStargateClient", () => { }; const fee = { amount: coins(2000, "ucosm"), - gas: "180000", // 180k + gas: "222000", // 222k }; const memo = "Use your power wisely"; const signed = await client.sign(faucet.address0, [msgAny], fee, memo); @@ -629,7 +629,7 @@ describe("SigningStargateClient", () => { }; const fee = { amount: coins(2000, "ucosm"), - gas: "180000", // 180k + gas: "222000", // 222k }; const memo = "Use your power wisely"; const signed = await client.sign(faucet.address0, [msgAny], fee, memo);