Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove sepolia from PoA conditional #69

Merged
merged 2 commits into from
Apr 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading