File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
tests/amsterdam/eip7928_block_level_access_lists Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
"""Tests for EIP-7928 using the consistent data class pattern."""
2
2
3
+ from typing import Dict
4
+
3
5
import pytest
4
6
7
+ from ethereum_test_base_types import Address
5
8
from ethereum_test_tools import (
6
9
Account ,
7
10
Alloc ,
@@ -370,7 +373,8 @@ def test_bal_self_destruct(
370
373
balance_changes = [BalBalanceChange (tx_index = 1 , post_balance = 0 )]
371
374
if pre_funded
372
375
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 [],
374
378
storage_changes = [],
375
379
code_changes = [], # should not be present
376
380
nonce_changes = [], # should not be present
@@ -379,7 +383,7 @@ def test_bal_self_destruct(
379
383
),
380
384
)
381
385
382
- post = {
386
+ post : Dict [ Address , Account ] = {
383
387
alice : Account (nonce = 1 ),
384
388
bob : Account (balance = expected_recipient_balance ),
385
389
}
You can’t perform that action at this time.
0 commit comments