Skip to content

test_rjumpi_to_code_end()

Documentation for tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_to_code_end@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_rjumpi.py::test_rjumpi_to_code_end --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_rjumpi.py::test_rjumpi_to_code_end --until=PragueEIP7692

EOF1I4200_0020 (Invalid) EOF code containing RJUMPI with target outside code bounds (Jumping to code end)

Source code in tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
def test_rjumpi_to_code_end(
    eof_test: EOFTestFiller,
):
    """
    EOF1I4200_0020 (Invalid) EOF code containing RJUMPI with target outside code bounds
    (Jumping to code end)
    """
    eof_test(
        data=Container(
            sections=[
                Section.Code(
                    code=Op.PUSH1(1) + Op.RJUMPI[1] + Op.STOP,
                ),
            ],
        ),
        expect_exception=EOFException.INVALID_RJUMP_DESTINATION,
    )