Skip to content

test_rjump_into_exchange()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_exchange@bc691d13.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_exchange --fork Osaka

EOF code containing RJUMP with target EXCHANGE immediate.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
def test_rjump_into_exchange(
    eof_test: EOFTestFiller,
):
    """EOF code containing RJUMP with target EXCHANGE immediate."""
    eof_test(
        container=Container.Code(
            Op.PUSH1[1]
            + Op.PUSH1[2]
            + Op.PUSH1[3]
            + Op.RJUMP[1]
            + Op.EXCHANGE[0x00]
            + Op.SSTORE
            + Op.STOP,
        ),
        expect_exception=EOFException.INVALID_RJUMP_DESTINATION,
    )

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