Skip to content

test_rjump_positive_negative()

Documentation for tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_positive_negative@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_positive_negative --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_positive_negative --until=PragueEIP7692

EOF1V4200_0001 (Valid) EOF code containing RJUMP (Positive, Negative)

Source code in tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
def test_rjump_positive_negative(
    eof_state_test: EOFStateTestFiller,
):
    """EOF1V4200_0001 (Valid) EOF code containing RJUMP (Positive, Negative)"""
    eof_state_test(
        data=Container(
            sections=[
                Section.Code(
                    code=Op.PUSH0
                    + Op.RJUMPI[3]
                    + Op.RJUMP[7]
                    + Op.SSTORE(slot_code_worked, value_code_worked)
                    + Op.STOP
                    + Op.RJUMP[-10],
                )
            ],
        ),
        container_post=Account(storage={slot_code_worked: value_code_worked}),
    )