test_reservoir_allocation_boundary()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_reservoir_allocation_boundary@87aba1a3.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_reservoir_allocation_boundary --fork Amsterdam
Test state gas reservoir allocation at TX_MAX_GAS_LIMIT boundary.
When tx.gas <= TX_MAX_GAS_LIMIT, all execution gas fits in gas_left and the reservoir is zero. When tx.gas > TX_MAX_GAS_LIMIT, the excess goes to the reservoir. In all cases, an SSTORE should succeed because state gas can spill from gas_left.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 1 fork.