Skip to content

test_system_contract_errors()

Documentation for tests/prague/eip7251_consolidations/test_modified_consolidation_contract.py::test_system_contract_errors@0fe4295f.

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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
@pytest.mark.parametrize(
    "system_contract", [Address(Spec_EIP7251.CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS)]
)
@pytest.mark.pre_alloc_group("separate", reason="Deploys custom consolidation contract bytecode")
@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 system_contract_reaches_gas_limit 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Prague-blockchain_test-system_contract_out_of_gas-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 system_contract_out_of_gas 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Prague-blockchain_test-system_contract_reverts-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 system_contract_reverts 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Prague-blockchain_test-system_contract_throws-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 system_contract_throws 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Osaka-blockchain_test-system_contract_reaches_gas_limit-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 system_contract_reaches_gas_limit 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Osaka-blockchain_test-system_contract_out_of_gas-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 system_contract_out_of_gas 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Osaka-blockchain_test-system_contract_reverts-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 system_contract_reverts 0x0000bbddc7ce488642fb579f8b00f3 a590007251
...fork_Osaka-blockchain_test-system_contract_throws-system_contract_0x0000bbddc7ce488642fb579f8b00f3a590007251 system_contract_throws 0x0000bbddc7ce488642fb579f8b00f3 a590007251