Skip to content

test_system_contract_errors()

Documentation for tests/prague/eip7251_consolidations/test_modified_consolidation_contract.py::test_system_contract_errors@44293f1e.

Generate fixtures for these test cases for Prague with:

fill -v tests/prague/eip7251_consolidations/test_modified_consolidation_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/eip7251_consolidations/test_modified_consolidation_contract.py
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
@pytest.mark.parametrize(
    "system_contract", [Address(Spec_EIP7251.CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS)]
)
@generate_system_contract_error_test(
    max_gas_limit=Spec_EIP7251.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_0x0000bbddc7ce488642fb579f8b00f3a590007251 SystemContractTestType.GAS_LIMIT 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Prague-blockchain_test-system_contract_out_of_gas-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 SystemContractTestType.OUT_OF_GAS_ERROR 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Prague-blockchain_test-system_contract_reverts-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 SystemContractTestType.REVERT_ERROR 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Prague-blockchain_test-system_contract_throws-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 SystemContractTestType.EXCEPTION_ERROR 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Osaka-blockchain_test-system_contract_reaches_gas_limit-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 SystemContractTestType.GAS_LIMIT 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Osaka-blockchain_test-system_contract_out_of_gas-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 SystemContractTestType.OUT_OF_GAS_ERROR 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Osaka-blockchain_test-system_contract_reverts-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 SystemContractTestType.REVERT_ERROR 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Osaka-blockchain_test-system_contract_throws-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 SystemContractTestType.EXCEPTION_ERROR 0x0000bbddc7ce488642fb579f8b00f3 a590007251