test_insufficient_gas_for_sstore_state_cost()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_insufficient_gas_for_sstore_state_cost@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_insufficient_gas_for_sstore_state_cost --fork Amsterdam
Test that execution OOGs when gas is insufficient for SSTORE state cost.
Provide just enough gas for intrinsic costs plus the SSTORE regular gas, but not enough to also cover the SSTORE state gas. The SSTORE should OOG, leaving storage slot 0 unchanged at zero.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.