diff --git a/packages/adapters/solana/src/client.ts b/packages/adapters/solana/src/client.ts index e000846a89..5f4c05b344 100644 --- a/packages/adapters/solana/src/client.ts +++ b/packages/adapters/solana/src/client.ts @@ -477,14 +477,14 @@ export class SolanaAdapter implements ChainAdapter { provider.chains.find(chain => chain.caipNetworkId === caipNetworkId) || provider.chains[0] if (connectionChain) { - ProviderUtil.setProvider(this.chainNamespace, provider) - this.provider = provider - const caipAddress = `${connectionChain.caipNetworkId}:${address}` as const this.appKit?.setCaipAddress(caipAddress, this.chainNamespace) await this.switchNetwork(connectionChain) + ProviderUtil.setProvider(this.chainNamespace, provider) + this.provider = provider + switch (provider.type) { case 'WALLET_CONNECT': ProviderUtil.setProviderId(this.chainNamespace, 'walletConnect')