Skip to content

Commit

Permalink
feat: add support for Polygon Amoy (#76)
Browse files Browse the repository at this point in the history
Co-authored-by: El De-dog-lo <[email protected]>
  • Loading branch information
derekpierre and fubuloubu authored Mar 28, 2024
1 parent bf91511 commit 39132be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ape_infura/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"polygon": [
"mainnet",
"mumbai",
"amoy",
],
# TODO: Comment out after ape-linea supports 0.7
# "linea": [
Expand Down
2 changes: 1 addition & 1 deletion ape_infura/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def connect(self):
# Any chain that *began* as PoA needs the middleware for pre-merge blocks
ethereum_goerli = 5
optimism = (10, 420)
polygon = (137, 80001)
polygon = (137, 80001, 80002)
linea = (59144, 59140)

if self._web3.eth.chain_id in (ethereum_goerli, *optimism, *polygon, *linea):
Expand Down

0 comments on commit 39132be

Please sign in to comment.