Skip to content

test_jumpf_to_nonexistent_section()

Documentation for tests/prague/eip7692_eof_v1/eip6206_jumpf/test_jumpf_execution.py::test_jumpf_to_nonexistent_section@verkle@v0.0.6.

Generate fixtures for these test cases for Pragueeip7692 with:

Pragueeip7692 only:

fill -v tests/prague/eip7692_eof_v1/eip6206_jumpf/test_jumpf_execution.py::test_jumpf_to_nonexistent_section --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/eip6206_jumpf/test_jumpf_execution.py::test_jumpf_to_nonexistent_section --until=PragueEIP7692

Tests JUMPF jumping to valid section number but where the section does not exist

Source code in tests/prague/eip7692_eof_v1/eip6206_jumpf/test_jumpf_execution.py
120
121
122
123
124
125
126
127
128
129
130
131
132
133
def test_jumpf_to_nonexistent_section(
    eof_state_test: EOFStateTestFiller,
):
    """Tests JUMPF jumping to valid section number but where the section does not exist"""
    eof_state_test(
        data=Container(
            sections=[
                Section.Code(
                    code=Op.JUMPF[5],
                )
            ],
            validity_error=EOFException.INVALID_CODE_SECTION_INDEX,
        ),
    )