File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments