Skip to content

Commit

Permalink
black and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Aug 13, 2024
1 parent eb2f271 commit c2a769b
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 14 deletions.
7 changes: 5 additions & 2 deletions tests/berlin/test_rlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
from ethereum.base_types import U64, U256, Bytes, Bytes0, Bytes8, Uint
from ethereum.berlin.blocks import Block, Header, Log, Receipt
from ethereum.berlin.transactions import (
Access,
AccessListTransaction,
LegacyTransaction,
Transaction,
decode_transaction,
encode_transaction,
Access
)
from ethereum.berlin.utils.hexadecimal import hex_to_address
from ethereum.crypto.hash import keccak256
Expand Down Expand Up @@ -59,7 +59,10 @@
Bytes0(),
U256(4),
Bytes(b"bar"),
(Access(account=address1, slots=(hash1, hash2)), Access(account=address2, slots=tuple())),
(
Access(account=address1, slots=(hash1, hash2)),
Access(account=address2, slots=tuple()),
),
U256(27),
U256(5),
U256(6),
Expand Down
12 changes: 9 additions & 3 deletions tests/cancun/test_rlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
from ethereum.base_types import U64, U256, Bytes, Bytes0, Bytes8, Bytes32, Uint
from ethereum.cancun.blocks import Block, Header, Log, Receipt, Withdrawal
from ethereum.cancun.transactions import (
Access,
AccessListTransaction,
FeeMarketTransaction,
LegacyTransaction,
Transaction,
decode_transaction,
encode_transaction,
Access
)
from ethereum.cancun.utils.hexadecimal import hex_to_address
from ethereum.crypto.hash import keccak256
Expand Down Expand Up @@ -60,7 +60,10 @@
Bytes0(),
U256(4),
Bytes(b"bar"),
(Access(account=address1, slots=(hash1, hash2)), Access(account=address2, slots=tuple())),
(
Access(account=address1, slots=(hash1, hash2)),
Access(account=address2, slots=tuple()),
),
U256(27),
U256(5),
U256(6),
Expand All @@ -75,7 +78,10 @@
Bytes0(),
U256(4),
Bytes(b"bar"),
(Access(account=address1, slots=(hash1, hash2)), Access(account=address2, slots=tuple())),
(
Access(account=address1, slots=(hash1, hash2)),
Access(account=address2, slots=tuple()),
),
U256(27),
U256(5),
U256(6),
Expand Down
12 changes: 9 additions & 3 deletions tests/london/test_rlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from ethereum.crypto.hash import keccak256
from ethereum.london.blocks import Block, Header, Log, Receipt
from ethereum.london.transactions import (
Access,
AccessListTransaction,
FeeMarketTransaction,
LegacyTransaction,
Transaction,
decode_transaction,
encode_transaction,
Access
)
from ethereum.london.utils.hexadecimal import hex_to_address
from ethereum.utils.hexadecimal import hex_to_bytes256
Expand Down Expand Up @@ -60,7 +60,10 @@
Bytes0(),
U256(4),
Bytes(b"bar"),
(Access(account=address1, slots=(hash1, hash2)), Access(account=address2, slots=tuple())),
(
Access(account=address1, slots=(hash1, hash2)),
Access(account=address2, slots=tuple()),
),
U256(27),
U256(5),
U256(6),
Expand All @@ -75,7 +78,10 @@
Bytes0(),
U256(4),
Bytes(b"bar"),
(Access(account=address1, slots=(hash1, hash2)), Access(account=address2, slots=tuple())),
(
Access(account=address1, slots=(hash1, hash2)),
Access(account=address2, slots=tuple()),
),
U256(27),
U256(5),
U256(6),
Expand Down
12 changes: 9 additions & 3 deletions tests/paris/test_rlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from ethereum.crypto.hash import keccak256
from ethereum.paris.blocks import Block, Header, Log, Receipt
from ethereum.paris.transactions import (
Access,
AccessListTransaction,
FeeMarketTransaction,
LegacyTransaction,
Transaction,
decode_transaction,
encode_transaction,
Access
)
from ethereum.paris.utils.hexadecimal import hex_to_address
from ethereum.utils.hexadecimal import hex_to_bytes256
Expand Down Expand Up @@ -60,7 +60,10 @@
Bytes0(),
U256(4),
Bytes(b"bar"),
(Access(account=address1, slots=(hash1, hash2)), Access(account=address2, slots=tuple())),
(
Access(account=address1, slots=(hash1, hash2)),
Access(account=address2, slots=tuple()),
),
U256(27),
U256(5),
U256(6),
Expand All @@ -75,7 +78,10 @@
Bytes0(),
U256(4),
Bytes(b"bar"),
(Access(account=address1, slots=(hash1, hash2)), Access(account=address2, slots=tuple())),
(
Access(account=address1, slots=(hash1, hash2)),
Access(account=address2, slots=tuple()),
),
U256(27),
U256(5),
U256(6),
Expand Down
12 changes: 9 additions & 3 deletions tests/shanghai/test_rlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from ethereum.crypto.hash import keccak256
from ethereum.shanghai.blocks import Block, Header, Log, Receipt, Withdrawal
from ethereum.shanghai.transactions import (
Access,
AccessListTransaction,
FeeMarketTransaction,
LegacyTransaction,
Transaction,
decode_transaction,
encode_transaction,
Access
)
from ethereum.shanghai.utils.hexadecimal import hex_to_address
from ethereum.utils.hexadecimal import hex_to_bytes256
Expand Down Expand Up @@ -60,7 +60,10 @@
Bytes0(),
U256(4),
Bytes(b"bar"),
(Access(account=address1, slots=(hash1, hash2)), Access(account=address2, slots=tuple())),
(
Access(account=address1, slots=(hash1, hash2)),
Access(account=address2, slots=tuple()),
),
U256(27),
U256(5),
U256(6),
Expand All @@ -75,7 +78,10 @@
Bytes0(),
U256(4),
Bytes(b"bar"),
(Access(account=address1, slots=(hash1, hash2)), Access(account=address2, slots=tuple())),
(
Access(account=address1, slots=(hash1, hash2)),
Access(account=address2, slots=tuple()),
),
U256(27),
U256(5),
U256(6),
Expand Down

0 comments on commit c2a769b

Please sign in to comment.