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@c74f1a67.
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 regular work, but is one gas short of the MCOPY regular 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
1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.