Skip to content

Commit 105540d

Browse files
committed
Merge develop
2 parents 514a8bd + 3a9868f commit 105540d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)