From ab3183b2eb5f80f72a84f514485d3c1db3795627 Mon Sep 17 00:00:00 2001 From: NotPeopling2day <32708219+NotPeopling2day@users.noreply.github.com> Date: Thu, 2 May 2024 12:46:31 -0400 Subject: [PATCH] refactor: remove goerli (#78) --- README.md | 2 +- ape_infura/__init__.py | 2 -- ape_infura/provider.py | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c038ffe..062b611 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ export WEB3_INFURA_PROJECT_ID=MY_API_TOKEN To use the Infura provider plugin in most commands, set it via the `--network` option: ```bash -ape console --network ethereum:goerli:infura +ape console --network ethereum:sepolia:infura ``` To connect to Infura from a Python script, use the `networks` top-level manager: diff --git a/ape_infura/__init__.py b/ape_infura/__init__.py index f858713..5db73a8 100644 --- a/ape_infura/__init__.py +++ b/ape_infura/__init__.py @@ -5,7 +5,6 @@ NETWORKS = { "ethereum": [ "mainnet", - "goerli", "sepolia", ], "arbitrum": [ @@ -24,7 +23,6 @@ # TODO: Comment out after ape-linea supports 0.7 # "linea": [ # "mainnet", - # "goerli", # ], } diff --git a/ape_infura/provider.py b/ape_infura/provider.py index fc4b2d9..c270405 100644 --- a/ape_infura/provider.py +++ b/ape_infura/provider.py @@ -79,12 +79,12 @@ def connect(self): self._web3 = Web3(HTTPProvider(self.uri)) # Any chain that *began* as PoA needs the middleware for pre-merge blocks - ethereum_goerli = 5 + ethereum_sepolia = 11155111 optimism = (10, 420) polygon = (137, 80001, 80002) linea = (59144, 59140) - if self._web3.eth.chain_id in (ethereum_goerli, *optimism, *polygon, *linea): + if self._web3.eth.chain_id in (ethereum_sepolia, *optimism, *polygon, *linea): self._web3.middleware_onion.inject(geth_poa_middleware, layer=0) self._web3.eth.set_gas_price_strategy(rpc_gas_price_strategy)