Skip to content

test_rjumpi_zero()

Documentation for tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_zero@f6ab9733.

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_zero --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_zero --until=PragueEIP7692

EOF1V4200_0006 (Valid) EOF code containing RJUMPI (Zero)

Source code in tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
def test_rjumpi_zero(
    eof_state_test: EOFStateTestFiller,
):
    """EOF1V4200_0006 (Valid) EOF code containing RJUMPI (Zero)"""
    eof_state_test(
        data=Container(
            sections=[
                Section.Code(
                    code=Op.PUSH1(1)
                    + Op.RJUMPI[0]
                    + Op.SSTORE(slot_code_worked, value_code_worked)
                    + Op.STOP,
                )
            ],
        ),
        container_post=Account(storage={slot_code_worked: value_code_worked}),
    )