Skip to content

test_double_rjumpv()

Documentation for tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpv.py::test_double_rjumpv@f6ab9733.

Generate fixtures for these test cases for Pragueeip7692 with:

Pragueeip7692 only:

fill -v tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpv.py::test_double_rjumpv --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_rjumpv.py::test_double_rjumpv --until=PragueEIP7692

Two RJUMPVs, causing the min stack to underflow

Source code in tests/prague/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpv.py
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
def test_double_rjumpv(
    eof_test: EOFTestFiller,
):
    """
    Two RJUMPVs, causing the min stack to underflow
    """
    container = Container.Code(
        code=(Op.PUSH0 + Op.PUSH0 + Op.RJUMPV[6] + Op.PUSH0 + Op.PUSH0 + Op.RJUMPV[0] + Op.RETURN),
        max_stack_height=3,
    )
    eof_test(
        data=container,
        expect_exception=EOFException.STACK_UNDERFLOW,
    )