Skip to content

Commit

Permalink
refactor: remove goerli
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored May 9, 2024
2 parents 1557f3b + e1c01b4 commit 0805de3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ python3 setup.py install
Installing this plugin adds support for the Polygon ZkEVM ecosystem:

```
ape console --network polygon-zkevm:goerli
ape console --network polygon-zkevm:cardona
```

## Development
Expand Down
4 changes: 2 additions & 2 deletions ape_polygon_zkevm/ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
NETWORKS = {
# chain_id, network_id
"mainnet": (1101, 1101),
"goerli": (1442, 1442),
"cardona": (2442, 2442),
}


class PolygonZkEVMConfig(BaseEthereumConfig):
mainnet: NetworkConfig = create_network_config(block_time=2, required_confirmations=1)
goerli: NetworkConfig = create_network_config(block_time=2, required_confirmations=1)
cardona: NetworkConfig = create_network_config(block_time=2, required_confirmations=1)


class PolygonZkEVM(Ethereum):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
polygon-zkevm
├── mainnet
│ └── geth (default)
├── goerli
├── cardona
│ └── geth (default)
└── local (default)
└── test (default)
Expand Down Expand Up @@ -47,7 +47,7 @@ def assert_rich_text(actual: str, expected: str):
def test_networks(runner, cli, polygon_zkevm):
# Do this in case local env changed it.
polygon_zkevm.mainnet.set_default_provider("geth")
polygon_zkevm.goerli.set_default_provider("geth")
polygon_zkevm.cardona.set_default_provider("geth")

result = runner.invoke(cli, ["networks", "list"])
assert_rich_text(result.output, EXPECTED_OUTPUT)

0 comments on commit 0805de3

Please sign in to comment.