test_sstore_restore_nonzero_refunds_write()¶
Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_sstore_refunds.py::test_sstore_restore_nonzero_refunds_write@2867859a.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8038_state_access_gas_cost_increase/test_sstore_refunds.py::test_sstore_restore_nonzero_refunds_write --fork Amsterdam
Restoring a non-zero-original slot refunds the write cost.
The slot is changed (charging STORAGE_WRITE) then restored to its
original non-zero value, refunding STORAGE_WRITE. Gas is
burned so the quotient cap does not bind and the full refund is
observable.
Source code in tests/amsterdam/eip8038_state_access_gas_cost_increase/test_sstore_refunds.py
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 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.