Skip to content

Commit

Permalink
chore: remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk committed Sep 3, 2024
1 parent 5469d9d commit 519e95b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/base/adapters/solana/web3js/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,13 @@ export class SolanaWeb3JsClient implements ChainAdapter<SolStoreUtilState, CaipN
...clientOptions.solanaConfig.auth
})

const defaultChain = this.defaultChain

if (this.defaultSolanaChain) {
SolStoreUtil.setCurrentChain(this.defaultSolanaChain)
SolStoreUtil.setCaipChainId(`solana:${this.defaultSolanaChain.chainId}`)
}

if (defaultChain) {
this.appKit?.setCaipNetwork(defaultChain)
if (this.defaultChain) {
this.appKit?.setCaipNetwork(this.defaultChain)
}

this.syncNetwork()
Expand Down

0 comments on commit 519e95b

Please sign in to comment.