Skip to content

Commit 2602672

Browse files
chfastmarioevz
andauthored
fix(tests): EOF - EIP-3540: Remove duplicated validation tests (#593)
Co-authored-by: Mario Vega <[email protected]>
1 parent 53fc6d8 commit 2602672

File tree

1 file changed

+3
-27
lines changed

1 file changed

+3
-27
lines changed

tests/prague/eip7692_eof_v1/eip3540_eof_v1/container.py

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
name="single_code_single_data_section",
2222
sections=[
2323
Section.Code(
24-
code=Op.ADDRESS + Op.POP + Op.STOP,
24+
code=Op.PUSH0 + Op.POP + Op.STOP,
2525
max_stack_height=1,
2626
),
27-
Section.Data(data="0xef"),
27+
Section.Data(data="0x00"),
2828
],
2929
),
3030
Container(
@@ -149,11 +149,6 @@
149149
),
150150
Container(
151151
name="code_section_size_incomplete_4",
152-
raw_bytes=bytes([0xEF, 0x00, 0x01, 0x01, 0x00, 0x04, 0x02, 0x00, 0x01]),
153-
validity_error=EOFException.MISSING_HEADERS_TERMINATOR,
154-
),
155-
Container(
156-
name="code_section_size_incomplete_5",
157152
raw_bytes=bytes([0xEF, 0x00, 0x01, 0x01, 0x00, 0x04, 0x02, 0x00, 0x01, 0x00]),
158153
validity_error=EOFException.INCOMPLETE_SECTION_SIZE,
159154
),
@@ -389,7 +384,7 @@
389384
validity_error=EOFException.MISSING_TERMINATOR,
390385
),
391386
Container(
392-
name="multiple_code_and_data_sections_1",
387+
name="multiple_code_and_data_sections",
393388
sections=[
394389
Section.Code(Op.STOP),
395390
Section.Code(Op.STOP),
@@ -398,16 +393,6 @@
398393
],
399394
validity_error=EOFException.MISSING_TERMINATOR,
400395
),
401-
Container(
402-
name="multiple_code_and_data_sections_2",
403-
sections=[
404-
Section.Code(Op.STOP),
405-
Section.Data(data="0xAA"),
406-
Section.Code(Op.STOP),
407-
Section.Data(data="0xAA"),
408-
],
409-
validity_error=EOFException.MISSING_TERMINATOR,
410-
),
411396
Container(
412397
name="unknown_section_1",
413398
sections=[
@@ -609,15 +594,6 @@
609594
),
610595
Container(
611596
name="single_code_section_incomplete_type",
612-
sections=[
613-
Section(kind=Kind.TYPE, data="0x00"),
614-
Section.Code(Op.STOP),
615-
],
616-
auto_type_section=AutoSection.NONE,
617-
validity_error=EOFException.INVALID_TYPE_SECTION_SIZE,
618-
),
619-
Container(
620-
name="single_code_section_incomplete_type_2",
621597
sections=[
622598
Section(kind=Kind.TYPE, data="0x00", custom_size=2),
623599
Section.Code(Op.STOP),

0 commit comments

Comments
 (0)