-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
EVM opcode: CALLGAS #146
Comments
If this is about current call, I'd name it How is it better than storing the gas to the memory at the very beginning? |
True! I think |
This will only solve part of the issue. We also need CALLREFUND counter that will tell how much gas is gathered for refund (storage cleaning) at this point of time. |
There has been no activity on this issue for two months. It will be closed in a week if no further activity occurs. If you would like to move this EIP forward, please respond to any outstanding feedback or add a comment indicating that you have addressed all required feedback and are ready for a review. |
This issue was closed due to inactivity. If you are still pursuing it, feel free to reopen it and respond to any feedback or request a review in a comment. |
This is split out of #28.
Motivation
To allow contracts calculate the gas used effectively.
Specification
A new opcode,
TXGAS
CALLGAS
is introduced at0x3d
. It returns the initial gas allocation for the call. It can be used together withGAS
(0x5a
) to calculate the gas used.Note: this is different to #28 where the opcode
0x5c
was suggested.The text was updated successfully, but these errors were encountered: