feat(spec-specs, spec-tests): add EIP-7778 block gas accounting without refunds#2840
Merged
Conversation
forks/amsterdam
forks/amsterdamforks/amsterdam
8 tasks
forks/amsterdam
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## forks/amsterdam #2840 +/- ##
================================================
Coverage 86.94% 86.94%
================================================
Files 586 586
Lines 35764 35767 +3
Branches 3362 3362
================================================
+ Hits 31095 31098 +3
Misses 4010 4010
Partials 659 659
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…unds (#1401) * feat(specs): add eip-7778 implementation * fix(specs) spliting receipt gas from block gas * revert receipt_gas_used * make sure that the calldata floor cost overwrites the tx gas before refund * receipt gas used after refunds * clarify variable naming @gurukamath * revert to using gas used after refunds for cumulative gas in receipt and add gasSpent to receipt * spec(amsterdam): fix code formatting --------- Co-authored-by: Guruprasad Kamath <guru241987@gmail.com>
* fix(tests): fix legacy tests to run with eip-7778 * fix(tests): check gas_spent and gas_used after Amsterdam
* feat(spec-tests): add eip-7778 for calldata checks * feat(spec-tests): post review - use code gas_cost function Co-authored-by: Louis Tsai <72684086+LouisTsai-Csie@users.noreply.github.com> * Apply suggestions from code review --------- Co-authored-by: Louis Tsai <72684086+LouisTsai-Csie@users.noreply.github.com> Co-authored-by: Mario Vega <marioevz@gmail.com>
The set iteration in `build_refund_tx` is non-deterministic due to Python's hash randomization, causing fixture output to vary between runs. Sort by enum value to ensure reproducible fixtures.
Collaborator
Author
|
I want to do a follow-up PR to remove |
8ec956b to
dc52b58
Compare
Collaborator
Author
|
Some missing cases that we could do as follow-up PRs:
|
gurukamath
approved these changes
May 13, 2026
danceratopz
reviewed
May 13, 2026
Member
danceratopz
left a comment
There was a problem hiding this comment.
Couple of small comments.
marioevz
approved these changes
May 13, 2026
20 tasks
marioevz
approved these changes
May 13, 2026
Co-authored-by: Mario Vega <marioevz@gmail.com>
danceratopz
reviewed
May 13, 2026
Member
danceratopz
left a comment
There was a problem hiding this comment.
Small comment, not blocking for Merge: Skips should be illegal ;-)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🗒️ Description
Merge changes necessary for implementing EIP-7778 into the
forks/amsterdambranch.This PR targets the EIP-7778 spec from ethereum/EIPs@3929b1a.
🔗 Related Issues or PRs
forks/amsterdam#2846✅ Checklist
just statictype(scope):.mkdocs servelocally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.Cute Animal Picture