Skip to content

test_rjumpi_forwards()

Documentation for tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_forwards@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_rjumpi.py::test_rjumpi_forwards --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_rjumpi.py::test_rjumpi_forwards --until=PragueEIP7692

EOF1V4200_0004 (Valid) EOF code containing RJUMPI (Positive)

Source code in tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
def test_rjumpi_forwards(
    eof_state_test: EOFStateTestFiller,
):
    """EOF1V4200_0004 (Valid) EOF code containing RJUMPI (Positive)"""
    eof_state_test(
        data=Container(
            sections=[
                Section.Code(
                    code=Op.PUSH1(1)
                    + Op.RJUMPI[3]
                    + Op.NOOP
                    + Op.NOOP
                    + Op.STOP
                    + Op.SSTORE(slot_code_worked, value_code_worked)
                    + Op.STOP,
                )
            ],
        ),
        container_post=Account(storage={slot_code_worked: value_code_worked}),
    )