@@ -56,12 +56,12 @@ func initRecurseContract(t *testing.T) (contract sdk.AccAddress, ctx sdk.Context
5656
5757func TestGasCostOnQuery (t * testing.T ) {
5858 const (
59- GasNoWork uint64 = 63_983
59+ GasNoWork uint64 = 0xfa02
6060 // Note: about 100 SDK gas (10k CosmWasm gas) for each round of sha256
61- GasWork50 uint64 = 64_222 // this is a little shy of 50k gas - to keep an eye on the limit
61+ GasWork50 uint64 = 0xfaf9
6262
63- GasReturnUnhashed uint64 = 55
64- GasReturnHashed uint64 = 46
63+ GasReturnUnhashed uint64 = 70
64+ GasReturnHashed uint64 = 59
6565 )
6666
6767 cases := map [string ]struct {
@@ -211,9 +211,9 @@ func TestLimitRecursiveQueryGas(t *testing.T) {
211211
212212 const (
213213 // Note: about 100 SDK gas (10k CosmWasm gas) for each round of sha256
214- GasWork2k uint64 = 76_279 // = SetupContractCost + x // we have 6x gas used in cpu than in the instance
214+ GasWork2k uint64 = 0x12c20 // = SetupContractCost + x // we have 6x gas used in cpu than in the instance
215215 // This is overhead for calling into a sub-contract
216- GasReturnHashed uint64 = 48
216+ GasReturnHashed uint64 = 0x3B
217217 )
218218
219219 cases := map [string ]struct {
@@ -263,7 +263,7 @@ func TestLimitRecursiveQueryGas(t *testing.T) {
263263 expectQueriesFromContract : 10 ,
264264 expectOutOfGas : false ,
265265 expectError : "query wasm contract failed" , // Error we get from the contract instance doing the failing query, not wasmd
266- expectedGas : 10 * (GasWork2k + GasReturnHashed ) + 3279 , // lots of additional gas for long error message
266+ expectedGas : 10 * (GasWork2k + GasReturnHashed ) + 3400 , // lots of additional gas for long error message
267267 },
268268 }
269269
0 commit comments