test_child_clear_repays_own_spill_first()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_cross_frame_refund.py::test_child_clear_repays_own_spill_first@8acae1b0.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_cross_frame_refund.py::test_child_clear_repays_own_spill_first --fork Amsterdam
Test the cross-slot LIFO split of a cross-frame refund in a child.
The parent spills two fresh sets; a delegated child spills a set
of its own, then clears both parent slots. The first credit repays
the child's borrow, the second parks in the reservoir and repays
one parent spill at the merge, and a failing child discards the
parked credit with its rollback. What the call costs gas_left is
measured in test_child_clear_window_cost.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_cross_frame_refund.py
804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 1 fork.