Skip to content

test_rjump_into_self_pre_code()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_self_pre_code@49a16fac.

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_self_pre_code --fork Osaka

EOF code containing RJUMP with target self RJUMP with non-zero stack before RJUMP.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
261
262
263
264
265
266
267
def test_rjump_into_self_pre_code(
    eof_test: EOFTestFiller,
):
    """EOF code containing RJUMP with target self RJUMP with non-zero stack before RJUMP."""
    eof_test(
        container=Container.Code(Op.PUSH1(0) + Op.RJUMP[-len(Op.RJUMP[0])]),
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test