Merge pull request #4048 from AlphaWallet/fix-typos

Modify func signature to fix typos
pull/4049/head
Hwee-Boon Yar 3 years ago committed by GitHub
commit 25abc20b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      AlphaWallet/Tokens/Coordinators/SingleChainTokenCoordinator.swift
  2. 8
      AlphaWallet/Tokens/Coordinators/TokensCoordinator.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]
}

@ -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()

Loading…
Cancel
Save