Skip to content

Commit 60c09ab

Browse files
committed
Feature: Update web3 dependency
1 parent 0c848b5 commit 60c09ab

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ dependencies = [
3131
"aiohttp>=3.8.3",
3232
"aioresponses>=0.7.6",
3333
"aleph-message>=1",
34-
"aleph-superfluid>=0.2.1",
35-
"base58==2.1.1", # Needed now as default with _load_account changement
36-
"coincurve; python_version<'3.11'",
34+
"aleph-superfluid @ git+https://github.com/aleph-im/superfluid.py@andres-feature-update_dependencies",
35+
"base58==2.1.1", # Needed now as default with _load_account changement
36+
"coincurve; python_version>='3.11'",
3737
"coincurve>=19; python_version>='3.11'",
38-
"eth-abi>=4; python_version>='3.11'",
39-
"eth-typing==4.3.1",
38+
"eth-abi>=5.0.1; python_version>='3.11'",
39+
"eth-typing>=5.0.1",
4040
"jwcrypto==1.5.6",
4141
"pydantic>=2,<3",
4242
"pydantic-settings>=2",
43-
"pynacl==1.5", # Needed now as default with _load_account changement
43+
"pynacl==1.5", # Needed now as default with _load_account changement
4444
"python-magic",
4545
"typing-extensions",
46-
"web3==6.3",
46+
"web3>=7.10",
4747
]
4848

4949
optional-dependencies.all = [

src/aleph/sdk/chains/ethereum.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from eth_keys.exceptions import BadSignature as EthBadSignatureError
1212
from superfluid import Web3FlowInfo
1313
from web3 import Web3
14-
from web3.middleware import geth_poa_middleware
14+
from web3.middleware import ExtraDataToPOAMiddleware
1515
from web3.types import TxParams, TxReceipt
1616

1717
from aleph.sdk.exceptions import InsufficientFundsError
@@ -104,7 +104,7 @@ def connect_chain(self, chain: Optional[Chain] = None):
104104
self._provider = Web3(Web3.HTTPProvider(self.rpc))
105105
if chain == Chain.BSC:
106106
self._provider.middleware_onion.inject(
107-
geth_poa_middleware, "geth_poa", layer=0
107+
ExtraDataToPOAMiddleware, "geth_poa", layer=0
108108
)
109109
else:
110110
self.chain_id = None

0 commit comments

Comments
 (0)