@@ -56,11 +56,11 @@ func initRecurseContract(t *testing.T) (contract sdk.AccAddress, ctx sdk.Context
56
56
57
57
func TestGasCostOnQuery (t * testing.T ) {
58
58
const (
59
- GasNoWork uint64 = 63_987
60
- GasNoWorkDiscounted uint64 = 5_968
59
+ GasNoWork uint64 = 63_988
60
+ GasNoWorkDiscounted uint64 = 5_971
61
61
// Note: about 100 SDK gas (10k CosmWasm gas) for each round of sha256
62
- GasWork50 uint64 = 64_234 // this is a little shy of 50k gas - to keep an eye on the limit
63
- GasWork50Discounted uint64 = 6_207
62
+ GasWork50 uint64 = 64_236 // this is a little shy of 50k gas - to keep an eye on the limit
63
+ GasWork50Discounted uint64 = 6_210
64
64
65
65
GasReturnUnhashed uint64 = 89
66
66
GasReturnHashed uint64 = 86
@@ -214,9 +214,9 @@ func TestLimitRecursiveQueryGas(t *testing.T) {
214
214
215
215
const (
216
216
// Note: about 100 SDK gas (10k CosmWasm gas) for each round of sha256
217
- GasWork2k uint64 = 76_817 // = SetupContractCost + x // we have 6x gas used in cpu than in the instance
217
+ GasWork2k uint64 = 76_818 // = SetupContractCost + x // we have 6x gas used in cpu than in the instance
218
218
219
- GasWork2kDiscounted uint64 = 18_264 + 432
219
+ GasWork2kDiscounted uint64 = 18_264 + 436
220
220
221
221
// This is overhead for calling into a sub-contract
222
222
GasReturnHashed uint64 = 48 + 132
@@ -269,7 +269,7 @@ func TestLimitRecursiveQueryGas(t *testing.T) {
269
269
expectQueriesFromContract : 10 ,
270
270
expectOutOfGas : false ,
271
271
expectError : "query wasm contract failed" , // Error we get from the contract instance doing the failing query, not wasmd
272
- expectedGas : GasWork2k + GasReturnHashed + 9 * (GasWork2kDiscounted + GasReturnHashed ) + 3279 , // lots of additional gas for long error message
272
+ expectedGas : GasWork2k + GasReturnHashed + 9 * (GasWork2kDiscounted + GasReturnHashed ) + 3278 , // lots of additional gas for long error message
273
273
},
274
274
}
275
275
0 commit comments