test_sstore_restoration_create_init_revert()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py::test_sstore_restoration_create_init_revert@ffe48572.
Generate fixtures for these test cases for Bogota with:
Verify a reverting CREATE sub-frame does not inflate the caller's reservoir under source-based (LIFO) refills.
The init code spills its state gas from gas_left, does 0 to x to 0
and REVERTs. The CREATE is wrapped in an outer frame that also
REVERTs. Each refill returns the spilled state gas to gas_left,
and the reverts refill it to the caller's gas_left, not the
reservoir. The reservoir stays at 0, so a probe sized to OOG by 1
fails, since its fixed forwarded gas cannot reach the gas_left
refund.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 2 forks.