Skip to content

Commit

Permalink
Merge pull request #69 from ApeWorX/fix/po-not-a
Browse files Browse the repository at this point in the history
fix: remove sepolia from PoA conditional
  • Loading branch information
mikeshultz authored Apr 25, 2024
2 parents a3438ec + b69d313 commit 21ee174
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ape_alchemy/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,11 @@ def connect(self):
self._web3 = Web3(HTTPProvider(self.uri))
try:
# Any chain that *began* as PoA needs the middleware for pre-merge blocks
ethereum_sepolia = 11155111
base = 8453
optimism = 10
polygon = 137

if self._web3.eth.chain_id in (ethereum_sepolia, base, optimism, polygon):
if self._web3.eth.chain_id in (base, optimism, polygon):
self._web3.middleware_onion.inject(geth_poa_middleware, layer=0)

self._web3.eth.set_gas_price_strategy(rpc_gas_price_strategy)
Expand Down

0 comments on commit 21ee174

Please sign in to comment.