Skip to content

test_rjumpi_max_forward()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_max_forward@49a16fac.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_max_forward --fork Osaka

EOF1V4200_0007 (Valid) EOF with RJUMPI containing the maximum offset (32767).

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
def test_rjumpi_max_forward(
    eof_state_test: EOFStateTestFiller,
):
    """EOF1V4200_0007 (Valid) EOF with RJUMPI containing the maximum offset (32767)."""
    eof_state_test(
        container=Container(
            sections=[
                Section.Code(
                    code=Op.PUSH1(1)
                    + Op.RJUMPI[32767]
                    + Op.NOOP * 32768
                    + Op.SSTORE(slot_code_worked, value_code_worked)
                    + Op.STOP,
                )
            ],
        ),
        container_post=Account(storage={slot_code_worked: value_code_worked}),
    )

Parametrized Test Cases

This test case is only parametrized by fork and fixture format.

Test ID (Abbreviated)
...fork_Osaka-eof_test
...fork_Osaka-state_test
...fork_Osaka-blockchain_test