Skip to content

Commit e657916

Browse files
chfastmarioevz
andauthored
feat(fw): allow adding verbatim bytes to Bytecode (ethereum#1119)
* feat(fw): allow adding verbatim bytes to Bytecode * fix: linting, tests --------- Co-authored-by: Mario Vega <[email protected]>
1 parent f475572 commit e657916

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_rjump_truncated_rjump_2(
116116
):
117117
"""EOF1I4200_0002 (Invalid) EOF code containing truncated RJUMP."""
118118
eof_test(
119-
data=Container.Code(Op.RJUMP + Op.STOP),
119+
data=Container.Code(Op.RJUMP + b"\x00"),
120120
expect_exception=EOFException.TRUNCATED_INSTRUCTION,
121121
)
122122

osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def test_rjumpi_truncated_2(
300300
data=Container(
301301
sections=[
302302
Section.Code(
303-
code=Op.PUSH1(0) + Op.RJUMPI + Op.STOP,
303+
code=Op.PUSH1(0) + Op.RJUMPI + b"\x00",
304304
)
305305
],
306306
),

0 commit comments

Comments
 (0)