test_sstore_restoration_nonzero_no_state_refund()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py::test_sstore_restoration_nonzero_no_state_refund@2119b382.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py::test_sstore_restoration_nonzero_no_state_refund --fork Amsterdam
Test nonzero-to-nonzero-to-original restoration has no state gas refund.
When a slot holds a nonzero original value, changing it and restoring it never involves state gas (no state growth occurred), so only regular gas refunds apply.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.