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

EOFExceptionMismatch doesn't print the container name #557

Open
chfast opened this issue May 15, 2024 · 1 comment
Open

EOFExceptionMismatch doesn't print the container name #557

chfast opened this issue May 15, 2024 · 1 comment

Comments

@chfast
Copy link
Contributor

chfast commented May 15, 2024

A failing EOFExceptionMismatch doesn't know the cointaner name so it cannot display it. Displaying the container name should help to identify where the code comes from.

E           ethereum_test_tools.spec.eof.eof_test.EOFExceptionMismatch: EOF code raised a different exception than expected:
E               Code: 0xef00010100040200010001040004000000000000aabbcc
E           Expected: EOFException.INVALID_SECTION_BODIES_SIZE (err: invalid_section_bodies_size)
E                Got: EOFException.INVALID_FIRST_SECTION_TYPE (err: invalid_first_section_type)

src/ethereum_test_tools/spec/eof/eof_test.py:202: EOFExceptionMismatch
@chfast
Copy link
Contributor Author

chfast commented May 15, 2024

Actually, I noticed the failing test name has it FAILED tests/prague/eip3540_eof_v1/test_code_validation.py::test_legacy_initcode_invalid_eof_v1_contract[fork_Prague-eof_test-no_section_terminator_4a] - ethereum_test_tools.spec.eof.eof_test.EOFExceptionMismatch: EOF code raised a different exception than expected: . So the current behavior might be fine.

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

No branches or pull requests

1 participant