Skip to content

test_rjumpi_truncated()

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

EOF1I4200_0014 (Invalid) EOF code containing truncated RJUMPI

Source code in tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
287
288
289
290
291
292
293
294
295
296
297
298
299
300
def test_rjumpi_truncated(
    eof_test: EOFTestFiller,
):
    """EOF1I4200_0014 (Invalid) EOF code containing truncated RJUMPI"""
    eof_test(
        data=Container(
            sections=[
                Section.Code(
                    code=Op.PUSH1(0) + Op.RJUMPI,
                )
            ],
        ),
        expect_exception=EOFException.TRUNCATED_INSTRUCTION,
    )