We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3a6a6 commit edd4b3fCopy full SHA for edd4b3f
tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists.py
@@ -358,11 +358,18 @@ def test_bal_self_destruct(
358
),
359
)
360
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
371
blockchain_test(
372
pre=pre,
373
blocks=[block],
- post={
- alice: Account(nonce=1),
- bob: Account(balance=100),
- },
374
+ post=post,
375
0 commit comments