test_sstore_state_gas_source()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_sstore_state_gas_source@2119b382.
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_sstore_state_gas_source --fork Amsterdam
Test SSTORE zero-to-nonzero drawing state gas from different sources.
When reservoir_covers_state_gas is True, enough gas is provided above TX_MAX_GAS_LIMIT to cover all SSTORE state gas from the reservoir. When False, the reservoir is minimal (1 gas unit) and state gas must spill into gas_left.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py
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 132 133 134 | |
Parametrized Test Cases¶
This test generates 4 parametrized test cases across 1 fork.