Skip to content

Commit d913a56

Browse files
feat: matic mainnet and mumbai testnet (polygon) (#586)
Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com>
1 parent 6a1afc0 commit d913a56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/utilities.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ export function networkName(id: number): string {
325325
return 'kovan'
326326
case 100:
327327
return 'xdai'
328+
case 137:
329+
return 'matic'
330+
case 80001:
331+
return 'mumbai'
328332
case 42220:
329333
return 'celo'
330334
default:
@@ -347,6 +351,10 @@ export function networkToId(network: string): number {
347351
return 42
348352
case 'xdai':
349353
return 100
354+
case 'matic':
355+
return 137
356+
case 'mumbai':
357+
return 80001
350358
case 'celo':
351359
return 42220
352360
default:

0 commit comments

Comments
 (0)