test_access_list_duplicate_address_key_intrinsic_and_warmth()¶
Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_access_list_gas.py::test_access_list_duplicate_address_key_intrinsic_and_warmth@2119b382.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8038_state_access_gas_cost_increase/test_access_list_gas.py::test_access_list_duplicate_address_key_intrinsic_and_warmth --fork Amsterdam
A duplicated (address, storage_key) access-list entry is billed
twice intrinsically but warms the slot only once.
The same (contract, slot) pair is listed twice. The intrinsic
surcharge (floor tokens isolated as in
test_access_list_intrinsic_surcharge) bills both listings:
2 * TX_ACCESS_LIST_ADDRESS + 2 * TX_ACCESS_LIST_STORAGE_KEY. At
runtime the slot is nonetheless warm on its first SLOAD
(WARM_SLOAD), since warmth is set-membership, not a counter.
Source code in tests/amsterdam/eip8038_state_access_gas_cost_increase/test_access_list_gas.py
134 135 136 137 138 139 140 141 142 143 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 193 194 195 196 197 198 199 200 201 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.