Skip to content

feat(tests): add type 4 transaction edge case test #1648

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

Merged
merged 4 commits into from
May 29, 2025

Conversation

JereSalo
Copy link
Contributor

@JereSalo JereSalo commented May 25, 2025

🗒️ Description

Tests that when replacing the delegated contract of an account the previous contract shouldn't be kept in accessed_addresses. We test this by making a CALL directly to it in the same transaction.

Disclaimer: When filling the tests with the default tool (ethereum-spec-evm-resolver) and executing that .json with Geth or Reth these tests fail because the python execution spec doesn't behave in the same way that those clients do. For this I left a PR in the execution-specs repository.
Of course, when filling directly with Geth t8n tool there is no problem when running the test.

🔗 Related Issues

✅ Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.

@marioevz
Copy link
Member

Requires ethereum/execution-specs#1255 before merging.

Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for implementing this.

Just left a couple of comments.

@spencer-tb spencer-tb added scope:tests Scope: Changes EL client test cases in `./tests` type:feat type: Feature labels May 28, 2025
Copy link
Contributor

@spencer-tb spencer-tb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from my side! :)

Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey thanks for the changes! Just a few more comments and we can merge :)

@marioevz marioevz merged commit 1109bfb into ethereum:main May 29, 2025
13 checks passed
LouisTsai-Csie pushed a commit to LouisTsai-Csie/execution-spec-tests that referenced this pull request Jun 4, 2025
* add warm address test

* change return opcode for stop

* wrap CALL in CodeGasMeasure

* make test future-proof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:tests Scope: Changes EL client test cases in `./tests` type:feat type: Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants