Skip to content

test_rjump_into_self_remaining_code()

Documentation for tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_self_remaining_code@verkle@v0.0.6.

Generate fixtures for these test cases for Pragueeip7692 with:

Pragueeip7692 only:

fill -v tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_self_remaining_code --fork=PragueEIP7692 --evm-bin=/path/to/evm-tool-dev-version

For all forks up to and including Pragueeip7692:

fill -v tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_self_remaining_code --until=PragueEIP7692

EOF1I4200_0008 (Invalid) EOF code containing RJUMP with target self RJUMP but remaining unreachable code

Source code in tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
def test_rjump_into_self_remaining_code(
    eof_test: EOFTestFiller,
):
    """
    EOF1I4200_0008 (Invalid) EOF code containing RJUMP with target self RJUMP but remaining
    unreachable code
    """
    eof_test(
        data=Container(
            sections=[
                Section.Code(code=Op.RJUMP[-len(Op.RJUMP[0])] + Op.STOP),
            ],
        ),
        expect_exception=EOFException.UNREACHABLE_INSTRUCTIONS,
    )