Skip to content

test_rjump_into_self_pre_code()

Documentation for tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_self_pre_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_pre_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_pre_code --until=PragueEIP7692

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

Source code in tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
290
291
292
293
294
295
296
297
298
299
300
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(
        data=Container(
            sections=[
                Section.Code(code=Op.PUSH1(0) + Op.RJUMP[-len(Op.RJUMP[0])]),
            ],
        ),
    )