-
Notifications
You must be signed in to change notification settings - Fork 83
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
Conversation
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.
Mostly python-related comments, thanks!
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 the cleanup of the rest of the files, looks great!
ase_ready_opcode = True | ||
case _: | ||
raise ValueError("Unexpected opcode ", target_opcode) | ||
ase_ready_opcode = ( |
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.
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?
* 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
Mainly inspired by ipsilon/eof#138 and evmone state_transition tests