test_sstore_restoration_charge_in_ancestor_intermediate_revert()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py::test_sstore_restoration_charge_in_ancestor_intermediate_revert@5c024cbb.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py::test_sstore_restoration_charge_in_ancestor_intermediate_revert --fork Amsterdam
Verify a deferred refund applied in an intermediate frame still flows back to the caller when that frame REVERTs.
Caller's SSTORE charges; the matching clear in inner is deferred
through the chain and lands on middle's own SSTORE-set during
incorporate_child_on_success. Middle REVERTs; the applied
amount must reach the caller via incorporate_child_on_error.
A probe SSTORE sized to OOG by 1 detects loss.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py
1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 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 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.