Skip to content

Commit

Permalink
Fix gas in recurse tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pinosu committed Aug 29, 2024
1 parent 11bf8d4 commit b275e48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/wasm/keeper/recurse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit b275e48

Please sign in to comment.