Description
Suppose gas limit
passed in wasm is 100, then amount of gas used for instructions is 90 when call function in contract, and reading or writing storage consumed 30 gas which was deducted from the context gas limit in the call for cotract. The call can be excuted finally because the gas limit
(100) is greater than which needed(90). But now the context gas limit is 70. So it will failed when call consumeGas(ctx, res.GasUsed)
. I think it maybe not be a bug, but it will increase the failure rate of calling contract.