test_top_level_opcode_oog_before_frame_end_does_not_refund_state_gas()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_top_level_opcode_oog_before_frame_end_does_not_refund_state_gas@622620d8.
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_top_level_opcode_oog_before_frame_end_does_not_refund_state_gas --fork Amsterdam
Verify an opcode OOG before frame-end settlement does not refund unsettled state gas.
The transaction has enough gas for the SSTORE and all preceding execution work, but is one gas short of the MCOPY execution cost. The frame halts before frame-end settlement runs, so the earlier SSTORE never contributes execution state gas to refund.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py
1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.