Skip to content

test_rjump_into_stack_height_diff_2()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_stack_height_diff_2@b48d1dc8.

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

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

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
562
563
564
565
566
567
568
569
570
571
def test_rjump_into_stack_height_diff_2(
    eof_test: EOFTestFiller,
):
    """EOF code containing RJUMP with target instruction that cause stack height difference."""
    eof_test(
        container=Container.Code(
            Op.PUSH1[0] + Op.POP + Op.RJUMP[-(len(Op.RJUMP[0]) + len(Op.POP))]
        ),
        expect_exception=EOFException.STACK_HEIGHT_MISMATCH,
    )

Parametrized Test Cases

This test case is only parametrized by fork and fixture format.

Test ID (Abbreviated)
...fork_Osaka-eof_test
...fork_Osaka-state_test_from_eof_test
...fork_Osaka-blockchain_test_from_eof_test