test_sload_warmth_reverts_on_subcall_revert()¶
Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_sload_gas.py::test_sload_warmth_reverts_on_subcall_revert@2867859a.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8038_state_access_gas_cost_increase/test_sload_gas.py::test_sload_warmth_reverts_on_subcall_revert --fork Amsterdam
Warmth acquired inside a reverted sub-call does not persist.
An inner contract SLOADs the slot via DELEGATECALL (so the
warmed (address, slot) pair belongs to the outer account) then
REVERTs. Back in the outer frame, that same slot's first
SLOAD is cold again and is charged COLD_STORAGE_ACCESS,
proving the warm-slot set is rolled back on revert.
Source code in tests/amsterdam/eip8038_state_access_gas_cost_increase/test_sload_gas.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.