From b275e48bcbc0f8e10ea6be702732a0f2be521c6b Mon Sep 17 00:00:00 2001 From: Pino' Surace Date: Thu, 29 Aug 2024 14:26:32 +0200 Subject: [PATCH] Fix gas in recurse tests --- x/wasm/keeper/recurse_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/wasm/keeper/recurse_test.go b/x/wasm/keeper/recurse_test.go index 9cc93ebef5..b3af85cb3d 100644 --- a/x/wasm/keeper/recurse_test.go +++ b/x/wasm/keeper/recurse_test.go @@ -56,9 +56,9 @@ func initRecurseContract(t *testing.T) (contract sdk.AccAddress, ctx sdk.Context func TestGasCostOnQuery(t *testing.T) { const ( - GasNoWork uint64 = 63_983 + GasNoWork uint64 = 63_968 // Note: about 100 SDK gas (10k CosmWasm gas) for each round of sha256 - GasWork50 uint64 = 64_222 // this is a little shy of 50k gas - to keep an eye on the limit + GasWork50 uint64 = 64_207 // this is a little shy of 50k gas - to keep an eye on the limit GasReturnUnhashed uint64 = 55 GasReturnHashed uint64 = 46 @@ -211,7 +211,7 @@ func TestLimitRecursiveQueryGas(t *testing.T) { const ( // Note: about 100 SDK gas (10k CosmWasm gas) for each round of sha256 - GasWork2k uint64 = 76_279 // = SetupContractCost + x // we have 6x gas used in cpu than in the instance + GasWork2k uint64 = 76_264 // = SetupContractCost + x // we have 6x gas used in cpu than in the instance // This is overhead for calling into a sub-contract GasReturnHashed uint64 = 48 )