Skip to content

Commit 20bbd12

Browse files
committed
Fix matic-mumbai network and include aliases to legacy names (ethers-io#3811).
1 parent 388edf6 commit 20bbd12

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

src.ts/providers/network.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ function injectCommonNetworks(): void {
316316
url: "https:/\/api.polygonscan.com/"
317317
}
318318
});
319-
registerEth("maticMumbai", 80001, {
319+
registerEth("matic-mumbai", 80001, {
320+
altNames: [ "maticMumbai", "maticmum" ], // @TODO: Future remove these alts
320321
// priorityFee: 35000000000,
321322
etherscan: {
322323
// apiKey: "W6T8DJW654GNTQ34EFEYYP3EZD9DD27CT7",

src.ts/providers/provider-alchemy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function getHost(name: string): string {
3232
return "arb-goerli.g.alchemy.com";
3333
case "matic":
3434
return "polygon-mainnet.g.alchemy.com";
35-
case "maticmum":
35+
case "matic-mumbai":
3636
return "polygon-mumbai.g.alchemy.com";
3737
case "optimism":
3838
return "opt-mainnet.g.alchemy.com";

src.ts/providers/provider-etherscan.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* - Optimism (``optimism``)
1414
* - Optimism Goerli Testnet (``optimism-goerli``)
1515
* - Polygon (``matic``)
16-
* - Polygon Mumbai Testnet (``maticmum``)
16+
* - Polygon Mumbai Testnet (``matic-mumbai``)
1717
*
1818
* @_subsection api/providers/thirdparty:Etherscan [providers-etherscan]
1919
*/
@@ -164,7 +164,7 @@ export class EtherscanProvider extends AbstractProvider {
164164
return "https:/\/api-goerli.arbiscan.io";
165165
case "matic":
166166
return "https:/\/api.polygonscan.com";
167-
case "maticmum":
167+
case "matic-mumbai":
168168
return "https:/\/api-testnet.polygonscan.com";
169169
case "optimism":
170170
return "https:/\/api-optimistic.etherscan.io";

src.ts/providers/provider-infura.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* - Optimism (``optimism``)
1313
* - Optimism Goerli Testnet (``optimism-goerli``)
1414
* - Polygon (``matic``)
15-
* - Polygon Mumbai Testnet (``maticmum``)
15+
* - Polygon Mumbai Testnet (``matic-mumbai``)
1616
*
1717
* @_subsection: api/providers/thirdparty:INFURA [providers-infura]
1818
*/
@@ -47,7 +47,7 @@ function getHost(name: string): string {
4747
return "arbitrum-goerli.infura.io";
4848
case "matic":
4949
return "polygon-mainnet.infura.io";
50-
case "maticmum":
50+
case "matic-mumbai":
5151
return "polygon-mumbai.infura.io";
5252
case "optimism":
5353
return "optimism-mainnet.infura.io";

src.ts/providers/provider-pocket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function getHost(name: string): string {
3434

3535
case "matic":
3636
return "poly-mainnet.gateway.pokt.network";
37-
case "maticmum":
37+
case "matic-mumbai":
3838
return "polygon-mumbai-rpc.gateway.pokt.network";
3939
}
4040

src.ts/providers/provider-quicknode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* - Optimism (``optimism``)
1212
* - Optimism Goerli Testnet (``optimism-goerli``)
1313
* - Polygon (``matic``)
14-
* - Polygon Mumbai Testnet (``maticmum``)
14+
* - Polygon Mumbai Testnet (``matic-mumbai``)
1515
*
1616
* @_subsection: api/providers/thirdparty:QuickNode [providers-quicknode]
1717
*/
@@ -46,7 +46,7 @@ function getHost(name: string): string {
4646
return "ethers.arbitrum-goerli.quiknode.pro";
4747
case "matic":
4848
return "ethers.matic.quiknode.pro";
49-
case "maticmum":
49+
case "matic-mumbai":
5050
return "ethers.matic-testnet.quiknode.pro";
5151
case "optimism":
5252
return "ethers.optimism.quiknode.pro";

0 commit comments

Comments
 (0)