Skip to content

Commit ada2d17

Browse files
committed
fix lint
1 parent 21d412f commit ada2d17

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

tests/frontier/opcodes/test_calldatacopy.py

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
Account,
99
Alloc,
1010
Bytecode,
11-
Environment,
12-
Hash,
1311
StateTestFiller,
1412
Transaction,
1513
)
1614
from ethereum_test_tools.vm.opcode import Opcodes as Op
1715

16+
1817
@pytest.mark.valid_from("Byzantium")
1918
@pytest.mark.parametrize(
2019
"code,tx_data,code_address_storage,to_address_storage",
@@ -35,8 +34,12 @@
3534
+ Op.STOP
3635
),
3736
b"\x00",
38-
Account(storage={0x00: 0x3456000000000000000000000000000000000000000000000000000000000000}),
39-
Account(storage={0x00: 0x3456000000000000000000000000000000000000000000000000000000000000}),
37+
Account(
38+
storage={0x00: 0x3456000000000000000000000000000000000000000000000000000000000000}
39+
),
40+
Account(
41+
storage={0x00: 0x3456000000000000000000000000000000000000000000000000000000000000}
42+
),
4043
),
4144
(
4245
(
@@ -54,14 +57,12 @@
5457
+ Op.STOP
5558
),
5659
b"\x01",
57-
Account(storage={
58-
0x00: 0x3400000000000000000000000000000000000000000000000000000000000000
59-
},
60-
),
61-
Account(storage={
62-
0x00: 0x3400000000000000000000000000000000000000000000000000000000000000
63-
},
64-
),
60+
Account(
61+
storage={0x00: 0x3400000000000000000000000000000000000000000000000000000000000000},
62+
),
63+
Account(
64+
storage={0x00: 0x3400000000000000000000000000000000000000000000000000000000000000},
65+
),
6566
),
6667
(
6768
(
@@ -80,11 +81,11 @@
8081
),
8182
b"\x02",
8283
Account(
83-
storage={0x00: 0x00},
84-
),
84+
storage={0x00: 0x00},
85+
),
8586
Account(
86-
storage={0x00: 0x00},
87-
),
87+
storage={0x00: 0x00},
88+
),
8889
),
8990
(
9091
(
@@ -103,11 +104,11 @@
103104
),
104105
b"\x03",
105106
Account(
106-
storage={0x00: 0x00},
107-
),
107+
storage={0x00: 0x00},
108+
),
108109
Account(
109-
storage={0x00: 0x00},
110-
),
110+
storage={0x00: 0x00},
111+
),
111112
),
112113
(
113114
(
@@ -209,6 +210,11 @@ def test_calldatacopy(
209210
code_address_storage: Account,
210211
to_address_storage: Account,
211212
):
213+
"""
214+
Test `CALLDATACOPY` opcode.
215+
216+
Based on https://github.com/ethereum/tests/blob/develop/src/GeneralStateTestsFiller/VMTests/vmTests/calldatacopyFiller.yml
217+
"""
212218
code_address = pre.deploy_contract(code)
213219
to = pre.deploy_contract(
214220
code=(

0 commit comments

Comments
 (0)