Skip to content

Commit

Permalink
Add matic and optimism support to default provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 15, 2022
1 parent 8b62aef commit a301297
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/networks/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,18 @@ const networks: { [name: string]: Network } = {

xdai: { chainId: 100, name: "xdai" },

matic: { chainId: 137, name: "matic" },
matic: {
chainId: 137,
name: "matic",
_defaultProvider: ethDefaultProvider("matic")
},
maticmum: { chainId: 80001, name: "maticmum" },

optimism: { chainId: 10, name: "optimism" },
optimism: {
chainId: 10,
name: "optimism",
_defaultProvider: ethDefaultProvider("optimism")
},
"optimism-kovan": { chainId: 69, name: "optimism-kovan" },
"optimism-goerli": { chainId: 420, name: "optimism-goerli" },

Expand Down

0 comments on commit a301297

Please sign in to comment.