-
Notifications
You must be signed in to change notification settings - Fork 117
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
fix(tests): EOF - Change kind_data from 0x04 to 0xff #1339
base: main
Are you sure you want to change the base?
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.
Some minor suggestions, but overall looks good to me!
@@ -31,16 +31,14 @@ | |||
VERSION_NUMBER_BYTES, | |||
) | |||
|
|||
VERSION_MAX_SECTION_KIND = 3 |
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.
What about doing something like VERSION_MAX_NON_DATA_SECTION_KIND
?
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.
I'm skeptical. It was used in only 3 spots in one test. Also, this abstraction might not hold in future designs, e.g. metadata section kind might end up being at 5 skipping 4, so a concept like max section kind is a bit misleading. It might not be a contiguous key list.
tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py
Outdated
Show resolved
Hide resolved
tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py
Outdated
Show resolved
Hide resolved
tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py
Outdated
Show resolved
Hide resolved
tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py
Outdated
Show resolved
Hide resolved
tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py
Outdated
Show resolved
Hide resolved
tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py
Outdated
Show resolved
Hide resolved
tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py
Outdated
Show resolved
Hide resolved
tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py
Outdated
Show resolved
Hide resolved
tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py
Outdated
Show resolved
Hide resolved
@@ -832,8 +832,8 @@ def test_wide_container(eof_test: EOFTestFiller, width: int, exception: EOFExcep | |||
] | |||
+ 2 * [abort_sub_container], | |||
expected_bytecode=""" | |||
ef0001010004020001000b03000200140014040000000080000436600060ff6000ec015000ef00010100 | |||
0402000100010400000000800000feef000101000402000100010400000000800000fe""", | |||
ef0001010004020001000b03000200140014ff0000000080000436600060ff6000ec015000ef00010100 |
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.
@marioevz
this is what I mean. one byte change in the format and we have to correct all the tests.
in this case I think it is better we have a few unit tests for eof format builder.
and disable expected_bytecode validation in most of EOF tests. unless EOF want to stay super secure and maintain it.
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.
I second this
Co-authored-by: Mario Vega <[email protected]>
ποΈ Description
Align with eof-devnet-1 changes ipsilon/eof#173. Fills with
evmone
after a respective update, will be referenced soon ππ Related Issues
β Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.