Skip to content

Commit

Permalink
refactor: remove goerli (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotPeopling2day authored May 2, 2024
1 parent f0388a4 commit ab3183b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions ape_infura/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
NETWORKS = {
"ethereum": [
"mainnet",
"goerli",
"sepolia",
],
"arbitrum": [
Expand All @@ -24,7 +23,6 @@
# TODO: Comment out after ape-linea supports 0.7
# "linea": [
# "mainnet",
# "goerli",
# ],
}

Expand Down
4 changes: 2 additions & 2 deletions ape_infura/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ab3183b

Please sign in to comment.