test_top_level_failure_spilled_state_gas()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_top_level_failure_spilled_state_gas@ffe48572.
Generate fixtures for these test cases for Bogota with:
Verify top-level failure handling for spilled state gas, whether the spill is charged in the frame itself, propagated from a successful subcall, or both.
The reservoir covers half an SSTORE's state gas, so each SSTORE
charge spills into gas_left. A successful child propagates its
state_gas_spilled into the parent, accumulating with the parent's
own spill. Refunds are LIFO, so the spilled portion returns to
gas_left and only the reservoir-funded portion to the reservoir.
- REVERT preserves
gas_left, so all state gas is refunded and the sender pays only the execution component. - Halt refills LIFO then zeros
gas_left, so the spill is burned and only the start reservoir survives.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py
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 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 | |
Parametrized Test Cases¶
This test generates 6 parametrized test cases across 2 forks.