Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pacrob committed Jan 7, 2025
1 parent 21d412f commit ada2d17
Showing 1 changed file with 26 additions and 20 deletions.
46 changes: 26 additions & 20 deletions tests/frontier/opcodes/test_calldatacopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
Account,
Alloc,
Bytecode,
Environment,
Hash,
StateTestFiller,
Transaction,
)
from ethereum_test_tools.vm.opcode import Opcodes as Op


@pytest.mark.valid_from("Byzantium")
@pytest.mark.parametrize(
"code,tx_data,code_address_storage,to_address_storage",
Expand All @@ -35,8 +34,12 @@
+ Op.STOP
),
b"\x00",
Account(storage={0x00: 0x3456000000000000000000000000000000000000000000000000000000000000}),
Account(storage={0x00: 0x3456000000000000000000000000000000000000000000000000000000000000}),
Account(
storage={0x00: 0x3456000000000000000000000000000000000000000000000000000000000000}
),
Account(
storage={0x00: 0x3456000000000000000000000000000000000000000000000000000000000000}
),
),
(
(
Expand All @@ -54,14 +57,12 @@
+ Op.STOP
),
b"\x01",
Account(storage={
0x00: 0x3400000000000000000000000000000000000000000000000000000000000000
},
),
Account(storage={
0x00: 0x3400000000000000000000000000000000000000000000000000000000000000
},
),
Account(
storage={0x00: 0x3400000000000000000000000000000000000000000000000000000000000000},
),
Account(
storage={0x00: 0x3400000000000000000000000000000000000000000000000000000000000000},
),
),
(
(
Expand All @@ -80,11 +81,11 @@
),
b"\x02",
Account(
storage={0x00: 0x00},
),
storage={0x00: 0x00},
),
Account(
storage={0x00: 0x00},
),
storage={0x00: 0x00},
),
),
(
(
Expand All @@ -103,11 +104,11 @@
),
b"\x03",
Account(
storage={0x00: 0x00},
),
storage={0x00: 0x00},
),
Account(
storage={0x00: 0x00},
),
storage={0x00: 0x00},
),
),
(
(
Expand Down Expand Up @@ -209,6 +210,11 @@ def test_calldatacopy(
code_address_storage: Account,
to_address_storage: Account,
):
"""
Test `CALLDATACOPY` opcode.
Based on https://github.com/ethereum/tests/blob/develop/src/GeneralStateTestsFiller/VMTests/vmTests/calldatacopyFiller.yml
"""
code_address = pre.deploy_contract(code)
to = pre.deploy_contract(
code=(
Expand Down

0 comments on commit ada2d17

Please sign in to comment.