test_code_deposit_oog_preserves_parent_reservoir()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_code_deposit_oog_preserves_parent_reservoir@5c024cbb.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_code_deposit_oog_preserves_parent_reservoir --fork Amsterdam
Test parent reservoir preserved after child code deposit OOG.
A caller contract invokes the factory via CALL with limited gas. The child CREATE returns enough bytes that code deposit state gas exceeds the child frame's available gas (reservoir spillover plus the limited gas_left). The factory's SSTORE after the failed CREATE proves the reservoir was not inflated by a spill-then-halt refund.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py
645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.