test_spilled_state_gas_consumed_across_halt_chain()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_spilled_state_gas_consumed_across_halt_chain@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_spilled_state_gas_consumed_across_halt_chain --fork Amsterdam
Verify spilled state gas stays consumed along a chain of halting frames.
A self-DELEGATECALLing contract writes NOT(storage[slot]), so set and
clear alternate down the shared-storage call stack and the reservoir is
recycled instead of drained once. Each frame reuses the value it wrote as
a CALL's args_size, so the frames that set the slot halt on the
memory-size overflow while the frames that cleared it re-enter the
contract, interleaving halting and surviving frames. Every halt must burn
its spill rather than credit it back to the caller's reservoir, so the
top-level halt charges the whole gas limit.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 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 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 1 fork.