Skip to content
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

Closed
axic opened this issue Sep 2, 2016 · 5 comments
Closed

EVM opcode: CALLGAS #146

axic opened this issue Sep 2, 2016 · 5 comments
Labels

Comments

@axic
Copy link
Member

axic commented Sep 2, 2016

This is split out of #28.

Motivation

To allow contracts calculate the gas used effectively.

Specification

A new opcode, TXGAS CALLGAS is introduced at 0x3d. It returns the initial gas allocation for the call. It can be used together with GAS (0x5a) to calculate the gas used.

Note: this is different to #28 where the opcode 0x5c was suggested.

@chfast
Copy link
Member

chfast commented Sep 8, 2016

If this is about current call, I'd name it MSGGAS.

How is it better than storing the gas to the memory at the very beginning?

@axic
Copy link
Member Author

axic commented Sep 9, 2016

True! I think CALLGAS might be better fitting as we have CALLVALUE as well.

@axic axic changed the title EVM opcode: TXGAS EVM opcode: CALLGAS Sep 30, 2016
@lastperson
Copy link

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.

@github-actions
Copy link

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.

@github-actions github-actions bot added the stale label Jan 11, 2022
@github-actions
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants