Skip to content

Commit

Permalink
Fix wallet config (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang authored Dec 20, 2024
1 parent a62aced commit 2723b57
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ final class dydxCarteraConfigWorker: BaseWorker {
}

private func configureCartera(environment: V4Environment) {
if let wallets = environment.walletConnection?.walletConnect?.v2?.wallets?.ios {
CarteraConfig.shared.wcModalWallets = wallets
}
let config = WalletProvidersConfig(walletConnectV1: nil,
walletConnectV2: WalletConnectV2Config(environment: environment),
walletSegue: WalletSegueConfig(environment: environment))
CarteraConfig.shared.walletProvidersConfig = config

if let wallets = environment.walletConnection?.walletConnect?.v2?.wallets?.ios {
CarteraConfig.shared.wcModalWallets = wallets
}
}
}

Expand Down

0 comments on commit 2723b57

Please sign in to comment.