You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error that txs of these contracts still use more gas is because in function execute of wasm keeper, we check if contract is gasless contract then we set gas = 0 for context by WithGasMeter function. This function return new context for execution but after execute function is end, it seem like the process of execution still use old context, this lead to gas still large
To fix this issue, we use RefundGas function to reduce gas used for gasless contract, this function doesn't return new context then after execution, the gas used is decreased for gasless contract
Context
From v0.50.x, we set gasless for some contracts but when we executes functions of these contracts, gas used of these txs is larger than we expected
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Gas used of this tx is smaller than usual
The text was updated successfully, but these errors were encountered: