Skip to content

Commit f37e985

Browse files
committed
Tighter post state assertions in new test
Co-Authored-By: greptile
1 parent 9aac490 commit f37e985

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/monad_eight/reserve_balance/test_transfers.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,13 @@ def test_contract_unrestricted_with_selfdestruct(
16391639
factory_address: Account(
16401640
storage={} if same_tx else storage,
16411641
balance=create_balance + call_balance if same_tx else 0,
1642-
)
1642+
),
1643+
# Delegated account retains its prefunded balance on revert
1644+
delegated_address: Account(balance=prefund_balance)
1645+
if through_delegation and prefund_balance > 0
1646+
else None,
1647+
# SELFDESTRUCT target should not receive value on revert
1648+
selfdestruct_target: None,
16431649
},
16441650
blocks=[Block(txs=txs)],
16451651
)

0 commit comments

Comments
 (0)