feat(test-tests) add testcase for calldata/codecopy OOG#2012
Merged
spencer-tb merged 5 commits intoethereum:forks/amsterdamfrom Jan 13, 2026
Merged
Conversation
Tests cover: - CALLDATACOPY with sufficient/insufficient gas for memory expansion - CODECOPY with sufficient/insufficient gas for memory expansion The tests verify that: - With sufficient gas: storage write succeeds - With insufficient gas: transaction runs out of gas and storage write does not occur
Shorten comment to comply with 79 character line limit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
f353187 to
782d351
Compare
7a0f758 to
46c3dde
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## forks/amsterdam #2012 +/- ##
================================================
Coverage 86.33% 86.33%
================================================
Files 538 538
Lines 34557 34557
Branches 3222 3222
================================================
Hits 29835 29835
Misses 4148 4148
Partials 574 574
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
approved these changes
Jan 13, 2026
Contributor
spencer-tb
left a comment
There was a problem hiding this comment.
LGTM!
Thanks for this, and highlighting that we have a postmortem doc. I didn't even know we had this!
Tested on all clients in with consume engine and also verified the bug on Nethermind.
jsign
pushed a commit
to jsign/execution-specs
that referenced
this pull request
Jan 20, 2026
CPerezz
pushed a commit
to CPerezz/execution-specs
that referenced
this pull request
Feb 27, 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
Add regression tests for CALLDATACOPY and CODECOPY gas consumption, specifically targeting the word copy cost calculation. These tests are ported from a Nethermind fix (PR #10116).
The tests verify that:
Related Issues or PRs
Ported from: NethermindEth/nethermind#10116
Checklist
toxchecks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:uvx tox -e statictype(scope):.mkdocs servelocally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.@ported_frommarker.Cute Animal Picture