Skip to content

Commit 9e4afd4

Browse files
committed
Update WalletConnect module
1 parent 94a2923 commit 9e4afd4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/walletconnect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bn-onboard/walletconnect",
3-
"version": "2.0.0-alpha.8",
3+
"version": "2.0.0-alpha.9",
44
"description": "WalletConnect module for Onboard.js",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",

packages/walletconnect/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ function walletConnect(options?: WalletConnectOptions): WalletInit {
157157
})
158158
}
159159

160-
if (method === 'wallet_switchEthereumChain') {
160+
if (
161+
method === 'wallet_switchEthereumChain' ||
162+
method === 'eth_selectAccounts'
163+
) {
161164
throw new ProviderRpcError({
162165
code: 4200,
163166
message: `The Provider does not support the requested method: ${method}`

0 commit comments

Comments
 (0)