Rename function to be more intention revealing

pull/3051/head
Hwee-Boon Yar 3 years ago
parent 0587f61eaf
commit a4c4839329
  1. 2
      AlphaWallet/Tokens/Coordinators/AddHideTokensCoordinator.swift
  2. 2
      AlphaWallet/Tokens/ViewControllers/AddHideTokensViewController.swift

@ -52,7 +52,7 @@ class AddHideTokensCoordinator: Coordinator {
navigationController.pushViewController(viewController, animated: true)
popularTokensCollection.fetchTokens().done { [weak self] tokens in
self?.viewController.add(popularTokens: tokens)
self?.viewController.set(popularTokens: tokens)
}.cauterize()
}

@ -134,7 +134,7 @@ class AddHideTokensViewController: UIViewController {
reload()
}
func add(popularTokens: [PopularToken]) {
func set(popularTokens: [PopularToken]) {
viewModel.set(allPopularTokens: popularTokens)
DispatchQueue.main.async {

Loading…
Cancel
Save