Skip to content

test_rjumpi_max_bytecode_size()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_max_bytecode_size@21fb11c8.

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_bytecode_size --fork Osaka

EOF1V4200_0003 EOF with RJUMPI containing the maximum offset that does not exceed the maximum bytecode size.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
265
266
267
268
269
270
271
272
273
274
275
276
def test_rjumpi_max_bytecode_size(
    eof_test: EOFTestFiller,
):
    """
    EOF1V4200_0003 EOF with RJUMPI containing the maximum offset that does not exceed the maximum
    bytecode size.
    """
    noop_count = MAX_BYTECODE_SIZE - 24
    code = Op.RJUMPI[len(Op.NOOP) * noop_count](Op.ORIGIN) + (Op.NOOP * noop_count) + Op.STOP
    container = Container.Code(code=code)
    assert len(container) == MAX_BYTECODE_SIZE
    eof_test(container=container)

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test