Skip to content
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

new(tests): EOF - EIP-7069: Add tests #722

Merged
merged 5 commits into from
Jul 31, 2024
Merged

Conversation

pdobacz
Copy link
Collaborator

@pdobacz pdobacz commented Jul 30, 2024

Mainly inspired by ipsilon/eof#138 and evmone state_transition tests

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.

Mostly python-related comments, thanks!

tests/prague/eip7692_eof_v1/eip7069_extcall/test_calls.py Outdated Show resolved Hide resolved
tests/prague/eip7692_eof_v1/eip7069_extcall/test_calls.py Outdated Show resolved Hide resolved
tests/prague/eip7692_eof_v1/eip7069_extcall/test_calls.py Outdated Show resolved Hide resolved
tests/prague/eip7692_eof_v1/eip7069_extcall/test_calls.py Outdated Show resolved Hide resolved
tests/prague/eip7692_eof_v1/eip7069_extcall/test_calls.py Outdated Show resolved Hide resolved
tests/prague/eip7692_eof_v1/eip7069_extcall/test_calls.py Outdated Show resolved Hide resolved
tests/prague/eip7692_eof_v1/eip7069_extcall/test_calls.py Outdated Show resolved Hide resolved
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.

Thanks for the cleanup of the rest of the files, looks great!

@marioevz marioevz changed the title EOF: Add EIP-7069 tests new(tests): EOF - EIP-7069: Add tests Jul 31, 2024
@marioevz marioevz merged commit 28f376b into ethereum:main Jul 31, 2024
4 checks passed
@marioevz marioevz deleted the extcall-tests branch July 31, 2024 13:51
ase_ready_opcode = True
case _:
raise ValueError("Unexpected opcode ", target_opcode)
ase_ready_opcode = (
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Interestingly, if I left this expression as a (simplified) match-case statement, mypy complained about the type of target_opcode not being callable in the target_opcode(address=Op.CALLDATALOAD(0)) below. I've searched for the reason and also tried upgrading mypy to 1.11 - to no avail. Have I missed sth or maybe it's worth to produce a reproducible example and report?

spencer-tb pushed a commit to spencer-tb/execution-spec-tests that referenced this pull request Aug 8, 2024
* chore(tests): EIP-7069 - move tests from eip3540 dir

* fix(tests): EIP-7069 - fix naming of extcall status codes

* new(tests): EIP-7069 - add tests for EXT*CALL

* chore(tests): EIP-7069 - drop the opcode-suffix pattern

* chore(tests): EIP-7069 - drop unnecessary params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants