-
Notifications
You must be signed in to change notification settings - Fork 419
refactor(tests): Add fork parameter to Initcode generator #2176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(tests): Add fork parameter to Initcode generator #2176
Conversation
Initcode class now uses fork-specific gas costs and memory expansion formula instead of hardcoded values. Co-Authored-By: Claude Opus 4.5
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## forks/amsterdam #2176 +/- ##
================================================
Coverage 86.07% 86.07%
================================================
Files 599 599
Lines 39472 39472
Branches 3780 3780
================================================
Hits 33977 33977
Misses 4862 4862
Partials 633 633
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:
|
marioevz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! Some comments I think might be good to get addressed before merging.
packages/testing/src/execution_testing/tools/tools_code/generators.py
Outdated
Show resolved
Hide resolved
packages/testing/src/execution_testing/tools/tools_code/generators.py
Outdated
Show resolved
Hide resolved
packages/testing/src/execution_testing/tools/tools_code/generators.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Mario Vega <[email protected]>
5e17cc9 to
e686959
Compare
marioevz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
🗒️ Description
Initcode class now uses fork-specific gas costs and memory expansion formula instead of hardcoded values.
This should make tests leveraging this generator less sensitive to gas repricings. An EIP-3860 test needed to be adapted a bit, to not hardcode
Initcodeinstances in parameters.🔗 Related Issues or PRs
N/A.
✅ Checklist
toxchecks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:uvx tox -e statictype(scope):.