Skip to content

Commit 14652e3

Browse files
committed
replace tx_data with calldata
1 parent de67c5c commit 14652e3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/frontier/opcodes/test_calldataload.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,25 @@
99

1010

1111
@pytest.mark.parametrize(
12-
"calldata,calldata_offset,tx_data,address_a_storage",
12+
"calldata,calldata_offset,address_a_storage",
1313
[
1414
(
1515
b"\x25\x60",
1616
0x0,
17-
b"\x00",
1817
Account(
1918
storage={0x00: 0x2560000000000000000000000000000000000000000000000000000000000000}
2019
),
2120
),
2221
(
2322
b"\xff" * 32 + b"\x23",
2423
0x1,
25-
b"\x01",
2624
Account(
2725
storage={0x00: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF23}
2826
),
2927
),
3028
(
3129
bytes.fromhex("123456789ABCDEF00000000000000000000000000000000000000000000000000024"),
3230
0x5,
33-
b"\x02",
3431
Account(
3532
storage={0x00: 0xBCDEF00000000000000000000000000000000000000000000000000024000000}
3633
),
@@ -47,7 +44,6 @@ def test_calldataload(
4744
calldata: bytes,
4845
calldata_offset: int,
4946
fork: Fork,
50-
tx_data: bytes,
5147
pre: Alloc,
5248
address_a_storage: Account,
5349
):
@@ -90,7 +86,7 @@ def test_calldataload(
9086
)
9187

9288
tx = Transaction(
93-
data=tx_data,
89+
data=calldata,
9490
gas_limit=100_000,
9591
gas_price=0x0A,
9692
protected=fork >= Byzantium,

0 commit comments

Comments
 (0)