test_cross_frame_refund_with_reservoir_grant()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_cross_frame_refund.py::test_cross_frame_refund_with_reservoir_grant@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_with_reservoir_grant --fork Amsterdam
Test the receipt is the same however much reservoir was bought.
The reservoir covers none, one or both of the parent's two sets
and the rest spill. A delegated child clears both slots and a
later set draws on whatever is left. The receipt is the same in
every case, so buying reservoir up front costs the sender nothing
and saves nothing. What the call and the set cost gas_left is
measured in test_reservoir_grant_window_costs.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_cross_frame_refund.py
1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 1 fork.