Skip to content

test_rjumpi_truncated_2()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_truncated_2@bc691d13.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_truncated_2 --fork Osaka

EOF1I4200_0015 (Invalid) EOF code containing truncated RJUMPI.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
938
939
940
941
942
943
944
945
946
947
948
949
950
951
def test_rjumpi_truncated_2(
    eof_test: EOFTestFiller,
):
    """EOF1I4200_0015 (Invalid) EOF code containing truncated RJUMPI."""
    eof_test(
        container=Container(
            sections=[
                Section.Code(
                    code=Op.PUSH1(0) + Op.RJUMPI + b"\x00",
                )
            ],
        ),
        expect_exception=EOFException.TRUNCATED_INSTRUCTION,
    )

Parametrized Test Cases

This test case is only parametrized by fork and fixture format.

Test ID (Abbreviated)
...fork_Osaka-eof_test
...fork_Osaka-state_test_from_eof_test
...fork_Osaka-blockchain_test_from_eof_test