Skip to content

Commit 6b0f795

Browse files
committed
Don't allow relative imports outside of a fork
1 parent 6b0b7e1 commit 6b0f795

File tree

38 files changed

+95
-47
lines changed

38 files changed

+95
-47
lines changed

src/ethereum/arrow_glacier/blocks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
from ethereum_types.frozen import slotted_freezable
1717
from ethereum_types.numeric import U256, Uint
1818

19-
from ..crypto.hash import Hash32
19+
from ethereum.crypto.hash import Hash32
20+
2021
from .fork_types import Address, Bloom, Root
2122
from .transactions import (
2223
AccessListTransaction,

src/ethereum/arrow_glacier/fork_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from ethereum_types.frozen import slotted_freezable
2020
from ethereum_types.numeric import U256, Uint
2121

22-
from ..crypto.hash import Hash32, keccak256
22+
from ethereum.crypto.hash import Hash32, keccak256
2323

2424
Address = Bytes20
2525
Root = Hash32

src/ethereum/berlin/blocks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
from ethereum_types.frozen import slotted_freezable
1717
from ethereum_types.numeric import U256, Uint
1818

19-
from ..crypto.hash import Hash32
19+
from ethereum.crypto.hash import Hash32
20+
2021
from .fork_types import Address, Bloom, Root
2122
from .transactions import AccessListTransaction, LegacyTransaction, Transaction
2223

src/ethereum/berlin/fork_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from ethereum_types.frozen import slotted_freezable
2020
from ethereum_types.numeric import U256, Uint
2121

22-
from ..crypto.hash import Hash32, keccak256
22+
from ethereum.crypto.hash import Hash32, keccak256
2323

2424
Address = Bytes20
2525
Root = Hash32

src/ethereum/byzantium/blocks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
from ethereum_types.frozen import slotted_freezable
1616
from ethereum_types.numeric import U256, Uint
1717

18-
from ..crypto.hash import Hash32
18+
from ethereum.crypto.hash import Hash32
19+
1920
from .fork_types import Address, Bloom, Root
2021
from .transactions import Transaction
2122

src/ethereum/byzantium/fork_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from ethereum_types.frozen import slotted_freezable
2020
from ethereum_types.numeric import U256, Uint
2121

22-
from ..crypto.hash import Hash32, keccak256
22+
from ethereum.crypto.hash import Hash32, keccak256
2323

2424
Address = Bytes20
2525
Root = Hash32

src/ethereum/cancun/blocks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
from ethereum_types.frozen import slotted_freezable
1717
from ethereum_types.numeric import U64, U256, Uint
1818

19-
from ..crypto.hash import Hash32
19+
from ethereum.crypto.hash import Hash32
20+
2021
from .fork_types import Address, Bloom, Root
2122
from .transactions import (
2223
AccessListTransaction,

src/ethereum/cancun/fork_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from ethereum_types.frozen import slotted_freezable
2020
from ethereum_types.numeric import U256, Uint
2121

22-
from ..crypto.hash import Hash32, keccak256
22+
from ethereum.crypto.hash import Hash32, keccak256
2323

2424
Address = Bytes20
2525
Root = Hash32

src/ethereum/constantinople/blocks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
from ethereum_types.frozen import slotted_freezable
1616
from ethereum_types.numeric import U256, Uint
1717

18-
from ..crypto.hash import Hash32
18+
from ethereum.crypto.hash import Hash32
19+
1920
from .fork_types import Address, Bloom, Root
2021
from .transactions import Transaction
2122

src/ethereum/constantinople/fork_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from ethereum_types.frozen import slotted_freezable
2020
from ethereum_types.numeric import U256, Uint
2121

22-
from ..crypto.hash import Hash32, keccak256
22+
from ethereum.crypto.hash import Hash32, keccak256
2323

2424
Address = Bytes20
2525
Root = Hash32

0 commit comments

Comments
 (0)