From e126ef3da72121f4ed956b0af9b4551ace436902 Mon Sep 17 00:00:00 2001 From: Mike Shultz Date: Thu, 25 Apr 2024 14:16:32 -0600 Subject: [PATCH] fix: remove sepolia from PoA conditional --- ape_alchemy/provider.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ape_alchemy/provider.py b/ape_alchemy/provider.py index acb59d9..5df5cbf 100644 --- a/ape_alchemy/provider.py +++ b/ape_alchemy/provider.py @@ -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)