File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
wallets/core/src/namespaces/starknet Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,12 @@ import { LegacyNetworks } from '../../legacy/mod.js';
88import { CAIP_NAMESPACE , CAIP_STARKNET_CHAIN_ID } from './constants.js' ;
99
1010export async function getAccounts ( provider : ProviderAPI ) {
11- const solanaResponse = await provider . connect ( ) ;
11+ const starknetResponse = await provider . connect ( ) ;
1212 /*
13- * Fallback for wallets like Coinbase that return no response on connect.
14- * If solanaResponse is undefined, use the provider's publicKey directly.
13+ * Fallback for wallets that return no response on connect.
1514 */
16- const account = solanaResponse
17- ? solanaResponse . publicKey . toString ( )
15+ const account = starknetResponse
16+ ? starknetResponse . publicKey . toString ( )
1817 : provider . publicKey . toString ( ) ;
1918 return {
2019 accounts : [ account ] ,
You can’t perform that action at this time.
0 commit comments