Skip to content

Commit 1c5cb5e

Browse files
1.35.0-0.0.3: [chore] add polygon (#713)
* 1.35.0-0.0.3: [chore] Adds polygon network id
1 parent 5723eca commit 1c5cb5e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
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.35.0-0.0.2",
3+
"version": "1.35.0-0.0.3",
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/modules/select/wallets/wallet-connect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function walletConnect(
5454
const provider = new WalletConnectProvider({
5555
infuraId: infuraKey,
5656
rpc,
57+
chainId: networkId,
5758
bridge,
5859
pollingInterval
5960
})

src/utilities.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,12 @@ export function networkName(id: number): string {
381381
3: 'ropsten',
382382
4: 'rinkeby',
383383
5: 'goerli',
384+
28: 'boba-rinkeby',
384385
42: 'kovan',
385-
100: 'xdai',
386386
56: 'bsc',
387-
288: 'boba-mainnet',
388-
28: 'boba-rinkeby'
387+
100: 'xdai',
388+
137: 'polygon',
389+
288: 'boba-mainnet'
389390
} as { [key: number]: string }
390391
)[id] || 'unknown'
391392
}

0 commit comments

Comments
 (0)