diff --git a/AlphaWallet/Tokens/Coordinators/SingleChainTokenCoordinator.swift b/AlphaWallet/Tokens/Coordinators/SingleChainTokenCoordinator.swift index 86c088046..a9d5678df 100644 --- a/AlphaWallet/Tokens/Coordinators/SingleChainTokenCoordinator.swift +++ b/AlphaWallet/Tokens/Coordinators/SingleChainTokenCoordinator.swift @@ -2,7 +2,7 @@ import Foundation import UIKit -import BigInt +import BigInt import PromiseKit import Result @@ -20,8 +20,8 @@ protocol SingleChainTokenCoordinatorDelegate: CanOpenURL, SendTransactionDelegat func didTap(transaction: TransactionInstance, inViewController viewController: UIViewController, in coordinator: SingleChainTokenCoordinator) func didTap(activity: Activity, inViewController viewController: UIViewController, in coordinator: SingleChainTokenCoordinator) func didPostTokenScriptTransaction(_ transaction: SentTransaction, in coordinator: SingleChainTokenCoordinator) - func didTapAddAlert(for tokenObject: TokenObject, in cordinator: SingleChainTokenCoordinator) - func didTapEditAlert(for tokenObject: TokenObject, alert: PriceAlert, in cordinator: SingleChainTokenCoordinator) + func didTapAddAlert(for tokenObject: TokenObject, in coordinator: SingleChainTokenCoordinator) + func didTapEditAlert(for tokenObject: TokenObject, alert: PriceAlert, in coordinator: SingleChainTokenCoordinator) } // swiftlint:disable type_body_length @@ -246,7 +246,7 @@ class SingleChainTokenCoordinator: Coordinator { func add(token: ERCToken) -> TokenObject { let tokenObject = tokensDataStore.addCustom(tokens: [token], shouldUpdateBalance: true) - + return tokenObject[0] } diff --git a/AlphaWallet/Tokens/Coordinators/TokensCoordinator.swift b/AlphaWallet/Tokens/Coordinators/TokensCoordinator.swift index 9f4de5f04..ad5217a3d 100644 --- a/AlphaWallet/Tokens/Coordinators/TokensCoordinator.swift +++ b/AlphaWallet/Tokens/Coordinators/TokensCoordinator.swift @@ -552,15 +552,15 @@ extension TokensCoordinator: SingleChainTokenCoordinatorDelegate { delegate?.didSendTransaction(transaction, inCoordinator: coordinator) } - func didTapAddAlert(for tokenObject: TokenObject, in cordinator: SingleChainTokenCoordinator) { - let coordinatorToAdd = EditPriceAlertCoordinator(navigationController: navigationController, configuration: .create, tokenObject: tokenObject, session: cordinator.session, alertService: alertService) + func didTapAddAlert(for tokenObject: TokenObject, in coordinator: SingleChainTokenCoordinator) { + let coordinatorToAdd = EditPriceAlertCoordinator(navigationController: navigationController, configuration: .create, tokenObject: tokenObject, session: coordinator.session, alertService: alertService) addCoordinator(coordinatorToAdd) coordinatorToAdd.delegate = self coordinatorToAdd.start() } - func didTapEditAlert(for tokenObject: TokenObject, alert: PriceAlert, in cordinator: SingleChainTokenCoordinator) { - let coordinatorToAdd = EditPriceAlertCoordinator(navigationController: navigationController, configuration: .edit(alert), tokenObject: tokenObject, session: cordinator.session, alertService: alertService) + func didTapEditAlert(for tokenObject: TokenObject, alert: PriceAlert, in coordinator: SingleChainTokenCoordinator) { + let coordinatorToAdd = EditPriceAlertCoordinator(navigationController: navigationController, configuration: .edit(alert), tokenObject: tokenObject, session: coordinator.session, alertService: alertService) addCoordinator(coordinatorToAdd) coordinatorToAdd.delegate = self coordinatorToAdd.start()