Skip to content

Commit

Permalink
GH-3365 Update chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryBespalov committed Dec 20, 2023
1 parent 05f17b7 commit 35f0f27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ class StartWalletConnectionViewController: PendingWalletActionViewController {

override func main() {
Task { @MainActor in
guard connection == nil else { return }
guard connection == nil, let chainIdStr = chain?.id, let chainId = Int(chainIdStr) else { return }
do {
connection = try await WebConnectionController.shared.connect(wallet: wallet, chainId: chain.id.flatMap(Int.init))
connection = try await WebConnectionController.shared.connect(wallet: wallet, chainId: chainId)
WebConnectionController.shared.attach(observer: self, to: connection)
if wallet != nil {
openWallet()
Expand Down

0 comments on commit 35f0f27

Please sign in to comment.