test_cross_frame_refund_after_delegation_spill()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_cross_frame_refund.py::test_cross_frame_refund_after_delegation_spill@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_cross_frame_refund_after_delegation_spill --fork Amsterdam
Test a cross-frame refund after the sender's delegation spilled.
A set-code transaction with an empty reservoir pays its delegation
from gas_left and commits that spill before the code runs. The
code spills a fresh set and a delegated child clears it. The merge
repays the code's spill but not the committed delegation spill, so
the delegation stays billed. What the call costs gas_left is
measured in test_delegation_spill_window_cost.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_cross_frame_refund.py
950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.