Skip to content

Commit 3a9868f

Browse files
1.25.0-0.5.5: [fix] Add check for WalletConnect Initialization object (#560)
1 parent 0eab583 commit 3a9868f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "1.25.0-0.5.4",
3+
"version": "1.25.0-0.5.5",
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",
@@ -83,4 +83,4 @@
8383
"authereum/ethers/elliptic": "^6.5.3",
8484
"@portis/web3/pocket-js-core/axios": "^0.21.1"
8585
}
86-
}
86+
}

src/modules/select/wallets/wallet-connect.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ function walletConnect(
5353

5454
const balanceProvider = createProvider({ rpcUrl })
5555

56+
if (infuraKey && rpc) {
57+
throw new Error(
58+
'WalletConnect requires an Infura ID or a custom RPC object but not both.'
59+
)
60+
}
61+
5662
const provider = new WalletConnectProvider({
5763
infuraId: infuraKey,
5864
rpc,

0 commit comments

Comments
 (0)