Skip to content

test_rjump_after_container()

Documentation for tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_after_container@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_rjump.py::test_rjump_after_container --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_rjump.py::test_rjump_after_container --until=PragueEIP7692

EOF1I4200_0006 (Invalid) EOF code containing RJUMP with target outside code bounds (Jumping after code end)

Source code in tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
def test_rjump_after_container(
    eof_test: EOFTestFiller,
):
    """
    EOF1I4200_0006 (Invalid) EOF code containing RJUMP with target outside code bounds
    (Jumping after code end)
    """
    eof_test(
        data=Container(
            sections=[
                Section.Code(code=Op.RJUMP[2]),
            ],
        ),
        expect_exception=EOFException.INVALID_RJUMP_DESTINATION,
    )