feat(tests): EIP-8037 isolate intrinsic-regular > cap with floor < cap#2870
Merged
spencer-tb merged 2 commits intoMay 18, 2026
Merged
Conversation
Add `test_intrinsic_regular_gas_exceeds_cap_with_floor_below_cap` covering the missing matrix cell in the EIP-7825/8037 cap-overflow fixtures: regular intrinsic exceeds the per-tx gas cap while the calldata floor stays well below it. Constructed via 2,237 EIP-7702 authorizations (regular-only cost of PER_AUTH_BASE_COST=7500) plus 4 non-zero calldata bytes. A client that only checks max(regular, floor) against the cap would accept this tx; the EIP requires rejecting it. Closes ethereum#2865.
f3dab9e to
61c03c9
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## devnets/bal/7 #2870 +/- ##
================================================
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:
|
spencer-tb
pushed a commit
to spencer-tb/execution-specs
that referenced
this pull request
May 22, 2026
7 tasks
6 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
Add
test_intrinsic_regular_gas_exceeds_cap_with_floor_below_capcovering the missing matrix cell in the EIP-7825/8037 cap-overflow fixtures: regular intrinsic exceeds the per-tx gas cap while the calldata floor stays well below it.Constructed via 2,237 EIP-7702 authorizations (regular-only cost of PER_AUTH_BASE_COST=7500) plus 4 non-zero calldata bytes. A client that only checks max(regular, floor) against the cap would accept this tx; the EIP requires rejecting it.
🔗 Related Issues or PRs
Closes #2865.
✅ Checklist
just statictype(scope):.