Skip to content

Commit dae8940

Browse files
committed
fix(tests): Fix expectations for self-destruct tests
1 parent b290901 commit dae8940

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
"""Tests for EIP-7928 using the consistent data class pattern."""
22

3+
from typing import Dict
4+
35
import pytest
46

7+
from ethereum_test_base_types import Address
58
from ethereum_test_tools import (
69
Account,
710
Alloc,
@@ -370,7 +373,8 @@ def test_bal_self_destruct(
370373
balance_changes=[BalBalanceChange(tx_index=1, post_balance=0)]
371374
if pre_funded
372375
else [],
373-
storage_reads=[0x01, 0x42], # Accessed slots to be recorded as reads
376+
# Accessed slots for same-tx are recorded as reads
377+
storage_reads=[0x01, 0x02] if self_destruct_in_same_tx else [],
374378
storage_changes=[],
375379
code_changes=[], # should not be present
376380
nonce_changes=[], # should not be present
@@ -379,7 +383,7 @@ def test_bal_self_destruct(
379383
),
380384
)
381385

382-
post = {
386+
post: Dict[Address, Account] = {
383387
alice: Account(nonce=1),
384388
bob: Account(balance=expected_recipient_balance),
385389
}

0 commit comments

Comments
 (0)