Skip to content

test_rjump_into_stack_height_diff()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_stack_height_diff@83970623.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_stack_height_diff --fork Osaka

EOF code containing RJUMP with target instruction that causes stack height difference.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
270
271
272
273
274
275
276
277
def test_rjump_into_stack_height_diff(
    eof_test: EOFTestFiller,
):
    """EOF code containing RJUMP with target instruction that causes stack height difference."""
    eof_test(
        container=Container.Code(Op.PUSH1(0) + Op.RJUMP[-(len(Op.RJUMP[0]) + len(Op.PUSH1(0)))]),
        expect_exception=EOFException.STACK_HEIGHT_MISMATCH,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test