99
1010
1111@pytest .mark .parametrize (
12- "calldata,calldata_offset,address_a_storage " ,
12+ "calldata,calldata_offset,expected_storage " ,
1313 [
1414 (
1515 b"\x25 \x60 " ,
1616 0x0 ,
17- Account (
18- storage = {0x00 : 0x2560000000000000000000000000000000000000000000000000000000000000 }
19- ),
17+ 0x2560000000000000000000000000000000000000000000000000000000000000 ,
2018 ),
2119 (
2220 b"\xff " * 32 + b"\x23 " ,
2321 0x1 ,
24- Account (
25- storage = {0x00 : 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF23 }
26- ),
22+ 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF23 ,
2723 ),
2824 (
2925 bytes .fromhex ("123456789ABCDEF00000000000000000000000000000000000000000000000000024" ),
3026 0x5 ,
31- Account (
32- storage = {0x00 : 0xBCDEF00000000000000000000000000000000000000000000000000024000000 }
33- ),
27+ 0xBCDEF00000000000000000000000000000000000000000000000000024000000 ,
3428 ),
3529 ],
3630 ids = [
@@ -45,7 +39,7 @@ def test_calldataload(
4539 calldata_offset : int ,
4640 fork : Fork ,
4741 pre : Alloc ,
48- address_a_storage : Account ,
42+ expected_storage : Account ,
4943):
5044 """
5145 Test `CALLDATALOAD` opcode.
@@ -94,5 +88,7 @@ def test_calldataload(
9488 to = to ,
9589 value = 0x01 ,
9690 )
97- post = {address_a : address_a_storage }
91+ post = {
92+ address_a : Account (storage = {0x00 : expected_storage }),
93+ }
9894 state_test (pre = pre , post = post , tx = tx )
0 commit comments