File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
tests/cancun/eip6780_selfdestruct Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1010 Alloc ,
1111 BalAccountExpectation ,
1212 BalBalanceChange ,
13+ BalCodeChange ,
14+ BalNonceChange ,
15+ BalStorageChange ,
16+ BalStorageSlot ,
1317 BlockAccessListExpectation ,
1418 Bytecode ,
1519 Environment ,
@@ -458,6 +462,31 @@ def test_selfdestruct_created_in_same_tx_with_revert( # noqa SC200
458462 ],
459463 )
460464 )
465+ else :
466+ account_expectations [
467+ selfdestruct_with_transfer_contract_address
468+ ] = BalAccountExpectation (
469+ storage_reads = [1 ],
470+ nonce_changes = [BalNonceChange (tx_index = 1 , post_nonce = 1 )],
471+ balance_changes = [BalBalanceChange (tx_index = 1 , post_balance = 1 )],
472+ code_changes = [
473+ BalCodeChange (
474+ tx_index = 1 ,
475+ new_code = selfdestruct_with_transfer_contract_code ,
476+ ),
477+ ],
478+ storage_changes = [
479+ BalStorageSlot (
480+ slot = 0 ,
481+ slot_changes = [
482+ BalStorageChange (tx_index = 1 , post_value = 1 ),
483+ ],
484+ ),
485+ ],
486+ )
487+ account_expectations [selfdestruct_recipient_address ] = (
488+ BalAccountExpectation .empty ()
489+ )
461490
462491 expected_block_access_list = BlockAccessListExpectation (
463492 account_expectations = account_expectations
You can’t perform that action at this time.
0 commit comments