Skip to content

Commit

Permalink
fix: sep
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 5, 2024
1 parent 0b07baa commit 8bed953
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ape_tenderly/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,10 @@ def connect(self):
raise ProviderError(f"Failed to connect to Tenderly Gateway.\n{repr(err)}") from err

# Any chain that *began* as PoA needs the middleware for pre-merge blocks
ethereum_sepolia = 11155111
optimism = (10, 420)
polygon = (137, 80001)

if chain_id in (ethereum_sepolia, *optimism, *polygon):
if chain_id in (*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 8bed953

Please sign in to comment.