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@622620d8.
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 is TX_BASE + CREATE_ACCESS plus the
init-code and calldata terms; the created account's NEW_ACCOUNT
state gas is charged at the top frame and plays no part in the
validity check. The init code never runs.
Source code in tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_intrinsic_gas_boundary.py
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 121 122 123 124 125 126 127 128 129 130 131 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.