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

Incorrect gas calculations for CALL* gas stipend #362

Open
Baltoli opened this issue Dec 18, 2024 · 0 comments
Open

Incorrect gas calculations for CALL* gas stipend #362

Baltoli opened this issue Dec 18, 2024 · 0 comments

Comments

@Baltoli
Copy link

Baltoli commented Dec 18, 2024

The gas calculator on the site for CALL* family opcodes is not correct; it subtracts the "gas stipend" cost from the total externally-observable cost of making the call. This means that the results of gas calculations for CALL* opcodes are 2300 lower than they should be (confirmed by testing against evmone).

I believe the fix should just be to delete this line from the call gas calculator; the stipend amount is only relevant when constructing the message to be sent to the callee account, not to the external gas calculations for the whole call.

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

No branches or pull requests

1 participant