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
Probably the above is not required, if #239 is implemented it can be done like this:
localgas_before=contract.gasLeft()
contract.call(address, function_name, args)
localused_gas=gas_before-contract.gasLeft()
assert(used_gas<=12500, "contract call used too much gas: " ..tostring(used_gas))
When a contract calls another one, it should be able to specify a limit of gas that the called contract can use
This feature appears to be partially implemented. It can be reviewed to check for viability.
The text was updated successfully, but these errors were encountered: