Skip to content

Commit

Permalink
refactor: revert change in solana client
Browse files Browse the repository at this point in the history
  • Loading branch information
zoruka committed Nov 6, 2024
1 parent 48a278a commit c87f362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/adapters/solana/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit c87f362

Please sign in to comment.