Skip to content

Commit

Permalink
refactor: mumbai to amoy
Browse files Browse the repository at this point in the history
  • Loading branch information
NotPeopling2day committed Apr 7, 2024
1 parent 35213e1 commit 9eae9d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ape_frame/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
],
"arbitrum": [
"mainnet",
"sepolia",
],
"optimism": [
"mainnet",
"sepolia",
],
"polygon": [
"mainnet",
"amoy",
],
}

Expand Down
4 changes: 2 additions & 2 deletions ape_frame/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def connect(self):

# Any chain that *began* as PoA needs the middleware for pre-merge blocks
ethereum_sepolia = 11155111
optimism = (10, 420)
polygon = (137, 80001)
optimism = (10, 11155420)
polygon = (137, 80002)
try:
if self._web3.eth.chain_id in (ethereum_sepolia, *optimism, *polygon):
self._web3.middleware_onion.inject(geth_poa_middleware, layer=0)
Expand Down

0 comments on commit 9eae9d7

Please sign in to comment.