feat(spec-specs): EIP-8037 - check static context upfront in CREATE opcodes - #2978
Merged
SamWilsn merged 1 commit intoJun 11, 2026
Conversation
5 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## forks/amsterdam #2978 +/- ##
================================================
Coverage 90.53% 90.53%
================================================
Files 535 535
Lines 32893 32895 +2
Branches 3021 3022 +1
================================================
+ Hits 29780 29782 +2
Misses 2595 2595
Partials 518 518
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:
|
SamWilsn
approved these changes
Jun 11, 2026
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
Restores the upfront static context check in
CREATE/CREATE2, reverted during #2901 review (thread).Already pushed to
devnets/bal/7ascd19a9addc.Details
Before EIP-8037 the check position didn't matter: the static violation burns all the frame's gas either way. With EIP-8037 it does:
CREATE/CREATE2chargeNEW_ACCOUNTstate gas before the static check.gas_left.🔗 Related Issues or PRs
Reverts part of ac39618.
✅ Checklist
just statictype(scope):.Cute Animal Picture