Skip to content

Commit b784119

Browse files
committed
Connection Issue
1 parent 8779061 commit b784119

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/wallet-sdk/src/CoinbaseWalletProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export class CoinbaseWalletProvider extends ProviderEventEmitter implements Prov
9595
switch (args.method) {
9696
case 'eth_requestAccounts': {
9797
let signerType: SignerType;
98+
9899
const subAccountsConfig = store.subAccountsConfig.get();
99100
if (subAccountsConfig?.enableAutoSubAccounts) {
100101
signerType = 'scw';
@@ -103,7 +104,7 @@ export class CoinbaseWalletProvider extends ProviderEventEmitter implements Prov
103104
}
104105
const signer = this.initSigner(signerType);
105106

106-
if (signerType === 'scw') {
107+
if (signerType === 'scw' && subAccountsConfig?.enableAutoSubAccounts) {
107108
await signer.handshake({ method: 'handshake' });
108109
// eth_requestAccounts gets translated to wallet_connect at SCWSigner level
109110
await signer.request(args);

0 commit comments

Comments
 (0)