test_intrinsic_gas_floor_boundary_contract_creation()¶
Documentation for tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_intrinsic_gas_boundary.py::test_intrinsic_gas_floor_boundary_contract_creation@2119b382.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_intrinsic_gas_boundary.py::test_intrinsic_gas_floor_boundary_contract_creation --fork Amsterdam
Reject a contract-creation transaction when
gas_limit = intrinsic_gas - 1.
A creation tx's intrinsic includes the NEW_ACCOUNT state gas, so
the pre-execution check rejects against the combined
regular + state intrinsic. The init code never runs.
Source code in tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_intrinsic_gas_boundary.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.