From 18a5c139d27c8868159e6d06f9da074e2e56f787 Mon Sep 17 00:00:00 2001 From: ant013 Date: Wed, 8 Nov 2023 14:53:48 +0600 Subject: [PATCH] Fix project --- .../SendAppShowWorker/AddressAppShowModule.swift | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/UnstoppableWallet/UnstoppableWallet/Modules/Main/Workers/SendAppShowWorker/AddressAppShowModule.swift b/UnstoppableWallet/UnstoppableWallet/Modules/Main/Workers/SendAppShowWorker/AddressAppShowModule.swift index 2c61f459ce..fad311b824 100644 --- a/UnstoppableWallet/UnstoppableWallet/Modules/Main/Workers/SendAppShowWorker/AddressAppShowModule.swift +++ b/UnstoppableWallet/UnstoppableWallet/Modules/Main/Workers/SendAppShowWorker/AddressAppShowModule.swift @@ -18,24 +18,22 @@ extension AddressAppShowModule: IEventHandler { return } - var uri: String? + var address: String? switch event { case let event as String: - uri = event + address = event default: () } - guard let uri else { + guard let address else { throw EventHandler.HandleError.noSuitableHandler } - let uriParser = AddressParserFactory.parser(blockchainType: <#T##BlockchainType?##MarketKit.BlockchainType?#>) - let disposeBag = DisposeBag() let chain = AddressParserFactory.parserChain(blockchainType: nil, withEns: false) let types = try await withCheckedThrowingContinuation { continuation in chain - .handlers(address: uri) + .handlers(address: address) .subscribe(onSuccess: { items in continuation.resume(returning: items.map { $0.blockchainType }) }, onError: { error in @@ -48,7 +46,7 @@ extension AddressAppShowModule: IEventHandler { throw EventHandler.HandleError.noSuitableHandler } - guard let viewController = WalletModule.sendTokenListViewController(allowedBlockchainTypes: types, prefilledAddress: uri) else { + guard let viewController = WalletModule.sendTokenListViewController(allowedBlockchainTypes: types, prefilledAddress: address) else { return }