test_selfdestruct_codebearing_zero_balance_beneficiary_no_account_write()¶
Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_selfdestruct_gas.py::test_selfdestruct_codebearing_zero_balance_beneficiary_no_account_write@343274cc.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8038_state_access_gas_cost_increase/test_selfdestruct_gas.py::test_selfdestruct_codebearing_zero_balance_beneficiary_no_account_write --fork Amsterdam
SELFDESTRUCT to a code-bearing zero-balance beneficiary: no ACCOUNT_WRITE.
The beneficiary is alive because it has code, not balance: it holds a
zero balance but a non-empty code (Op.STOP), so EIP-161 emptiness
does not apply and no account is created when a positive balance is
sent to it. Execution = OPCODE_SELFDESTRUCT_BASE +
(COLD_ACCOUNT_ACCESS if cold) with no ACCOUNT_WRITE and no state
gas — distinct from the
alive-via-balance case, which exercises the same path through a
different liveness source.
Source code in tests/amsterdam/eip8038_state_access_gas_cost_increase/test_selfdestruct_gas.py
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.