Skip to content

Commit b6578b1

Browse files
committed
Merge branch 'develop' into release/1.30.0
2 parents 9ff1760 + efe6f24 commit b6578b1

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "1.29.0-0.3.0",
3+
"version": "1.29.0-0.3.1",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",

src/utilities.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,8 @@ 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'
332-
case 42220:
333-
return 'celo'
328+
case 56:
329+
return 'bsc'
334330
default:
335331
const { networkId, networkName } = get(app)
336332
return (networkId === id && networkName) || 'unknown'
@@ -351,12 +347,8 @@ export function networkToId(network: string): number {
351347
return 42
352348
case 'xdai':
353349
return 100
354-
case 'matic':
355-
return 137
356-
case 'mumbai':
357-
return 80001
358-
case 'celo':
359-
return 42220
350+
case 'bsc':
351+
return 56
360352
default:
361353
return 0
362354
}

0 commit comments

Comments
 (0)