-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit gas on contract call #240
Comments
Probably the above is not required, if #239 is implemented it can be done like this: local gas_before = contract.gasLeft()
contract.call(address, function_name, args)
local used_gas = gas_before - contract.gasLeft()
assert(used_gas <= 12500, "contract call used too much gas: " .. tostring(used_gas)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: