Skip to content

test_system_contract_errors()

Documentation for tests/prague/eip7002_el_triggerable_withdrawals/test_modified_withdrawal_contract.py::test_system_contract_errors@dac366d6.

Generate fixtures for these test cases for Prague with:

fill -v tests/prague/eip7002_el_triggerable_withdrawals/test_modified_withdrawal_contract.py::test_system_contract_errors --fork Prague

Test system contract raising different errors when called by the system account at the end of the block execution.

To see the list of generated tests, please refer to the generate_system_contract_error_test decorator definition.

Source code in tests/prague/eip7002_el_triggerable_withdrawals/test_modified_withdrawal_contract.py
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
@pytest.mark.parametrize(
    "system_contract", [Address(Spec_EIP7002.WITHDRAWAL_REQUEST_PREDEPLOY_ADDRESS)]
)
@pytest.mark.pre_alloc_group("separate", reason="Deploys custom withdrawal contract bytecode")
@generate_system_contract_error_test(
    max_gas_limit=Spec_EIP7002.SYSTEM_CALL_GAS_LIMIT,
)
def test_system_contract_errors():
    """
    Test system contract raising different errors when called by the system account at the
    end of the block execution.

    To see the list of generated tests, please refer to the
    `generate_system_contract_error_test` decorator definition.
    """
    pass

Parametrized Test Cases

The interactive table below is also available as a standalone page.

Test ID (Abbreviated) test_type system_contract
...fork_Prague-blockchain_test-system_contract_reaches_gas_limit-system_contract_0x00000961ef480eb55e80d19ad83579a64c007002 system_contract_reaches_gas_limit 0x00000961ef480eb55e80d19ad83579 a64c007002
...fork_Prague-blockchain_test-system_contract_out_of_gas-system_contract_0x00000961ef480eb55e80d19ad83579a64c007002 system_contract_out_of_gas 0x00000961ef480eb55e80d19ad83579 a64c007002
...fork_Prague-blockchain_test-system_contract_reverts-system_contract_0x00000961ef480eb55e80d19ad83579a64c007002 system_contract_reverts 0x00000961ef480eb55e80d19ad83579 a64c007002
...fork_Prague-blockchain_test-system_contract_throws-system_contract_0x00000961ef480eb55e80d19ad83579a64c007002 system_contract_throws 0x00000961ef480eb55e80d19ad83579 a64c007002
...fork_Osaka-blockchain_test-system_contract_reaches_gas_limit-system_contract_0x00000961ef480eb55e80d19ad83579a64c007002 system_contract_reaches_gas_limit 0x00000961ef480eb55e80d19ad83579 a64c007002
...fork_Osaka-blockchain_test-system_contract_out_of_gas-system_contract_0x00000961ef480eb55e80d19ad83579a64c007002 system_contract_out_of_gas 0x00000961ef480eb55e80d19ad83579 a64c007002
...fork_Osaka-blockchain_test-system_contract_reverts-system_contract_0x00000961ef480eb55e80d19ad83579a64c007002 system_contract_reverts 0x00000961ef480eb55e80d19ad83579 a64c007002
...fork_Osaka-blockchain_test-system_contract_throws-system_contract_0x00000961ef480eb55e80d19ad83579a64c007002 system_contract_throws 0x00000961ef480eb55e80d19ad83579 a64c007002