feat(tests, spec-specs): refill auth state gas on delegation clear for EIP-8037#2848
Merged
spencer-tb merged 2 commits intoMay 13, 2026
Conversation
a51386f to
1845edb
Compare
rakita
reviewed
May 13, 2026
aba851a to
7de0d0f
Compare
7de0d0f to
dbc1cca
Compare
fselmo
approved these changes
May 13, 2026
Contributor
fselmo
left a comment
There was a problem hiding this comment.
Yes, this covers empty -> empty (clear). Lgtm!
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## devnets/bal/7 #2848 +/- ##
================================================
Coverage ? 87.39%
================================================
Files ? 586
Lines ? 35946
Branches ? 3381
================================================
Hits ? 31414
Misses ? 3911
Partials ? 621
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:
|
edg-l
added a commit
to lambdaclass/ethrex
that referenced
this pull request
May 13, 2026
Mirrors EELS PR #2848 (tests-bal@v7.1.1, devnets/bal/7): ethereum/execution-specs#2848 PR #2836 already refunded the 23-byte AUTH_BASE portion when the authority's pre-state code slot held a delegation indicator. #2848 broadens the condition: when the auth is a clear (`auth.address == 0x00`), no new indicator bytes are written regardless of pre-state code, so the AUTH_BASE refill applies even against an authority with no prior code. Equivalent to EELS: if authority_account.code_hash != EMPTY_CODE_HASH or auth.address == NULL_ADDRESS: refund = STATE_BYTES_PER_AUTH_BASE * COST_PER_STATE_BYTE
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
Refill
STATE_BYTES_PER_AUTH_BASE * CPSBto the state gas reservoir when an EIP-7702 authorization clears the delegation (auth.address == 0).🔗 Related Issues or PRs
N/A
✅ Checklist
just statictype(scope):.Cute Animal Picture