We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d2ef42 commit bd69209Copy full SHA for bd69209
src/modules/select/wallets/wallet-connect.ts
@@ -21,10 +21,12 @@ function walletConnect(
21
networkId
22
} = options
23
24
- if (!infuraKey || (rpc && !rpc[networkId])) {
25
- throw new Error(
26
- `A "infuraKey" or a "rpc" object with a parameter of ${networkId} must be included in the WalletConnect initialization object`
27
- )
+ if (!infuraKey) {
+ if (!rpc || !rpc[networkId]) {
+ throw new Error(
+ `A "infuraKey" or a "rpc" object with a parameter of ${networkId} must be included in the WalletConnect initialization object`
28
+ )
29
+ }
30
}
31
32
return {
0 commit comments