feat(tests): EIP-8037 auth refund funds state gas only, not regular - #3083
Merged
spencer-tb merged 2 commits intoJul 2, 2026
Conversation
A set_code tx on a pre-existing authority refunds NEW_ACCOUNT to the state reservoir. The target's SSTORE-set pays its state charge from that refund but its regular charge from gas_left, so one gas short of the SSTORE regular cost it runs out of gas despite the funded reservoir. Verified at Amsterdam via t8n: exact_fit writes the slot (gas_used 166_616), one_short reverts with the refund returned unspent (68_695).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## forks/amsterdam #3083 +/- ##
================================================
Coverage 93.23% 93.23%
================================================
Files 624 624
Lines 36924 36936 +12
Branches 3373 3375 +2
================================================
+ Hits 34427 34439 +12
Misses 1704 1704
Partials 793 793
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
23 tasks
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
A set_code tx on a pre-existing authority refunds NEW_ACCOUNT to the state reservoir. The target's SSTORE-set pays its state charge from that refund but its regular charge from gas_left, so one gas short of the SSTORE regular cost it runs out of gas despite the funded reservoir.
Verified at Amsterdam via t8n: exact_fit writes the slot (gas_used 166_616), one_short reverts with the refund returned unspent (68_695).
🔗 Related Issues or PRs
N/A.
✅ Checklist
just static<type>(<area>):, where<type>and<area>come from an approrpriateC-<type>, respectivelyA-<area>, label. The title should match the a target squash commit message.