Skip to content

Commit 6a1afc0

Browse files
authored
feat: celo mainnet (#587)
1 parent 88410f6 commit 6a1afc0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utilities.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ export function networkName(id: number): string {
325325
return 'kovan'
326326
case 100:
327327
return 'xdai'
328+
case 42220:
329+
return 'celo'
328330
default:
329331
const { networkId, networkName } = get(app)
330332
return (networkId === id && networkName) || 'unknown'
@@ -345,6 +347,8 @@ export function networkToId(network: string): number {
345347
return 42
346348
case 'xdai':
347349
return 100
350+
case 'celo':
351+
return 42220
348352
default:
349353
return 0
350354
}

0 commit comments

Comments
 (0)