Skip to content

Commit edd4b3f

Browse files
committed
🥢 nit: implicit post state
1 parent 1f3a6a6 commit edd4b3f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,18 @@ def test_bal_self_destruct(
358358
),
359359
)
360360

361+
post = {
362+
alice: Account(nonce=1),
363+
bob: Account(balance=100),
364+
}
365+
366+
# If the account was NOT self-destructed in the same contract,
367+
# we expect the account code to be present and its balance to be 0.
368+
if not self_destruct_in_same_tx:
369+
post[kaboom] = Account(balance=0, code=pre[kaboom].code) # type: ignore
370+
361371
blockchain_test(
362372
pre=pre,
363373
blocks=[block],
364-
post={
365-
alice: Account(nonce=1),
366-
bob: Account(balance=100),
367-
},
374+
post=post,
368375
)

0 commit comments

Comments
 (0)