Fix: when switching or importing accounts, auto detection was pulling tokens using the previous wallet's address

pull/451/head
Hwee-Boon Yar 6 years ago
parent 0c2adc7bbf
commit 537668acdb
  1. 3
      AlphaWallet/InCoordinator.swift

@ -133,6 +133,7 @@ class InCoordinator: Coordinator {
realm: realm
)
transactionsStorage.removeTransactions(for: [.failed, .pending, .unknown])
keystore.recentlyUsedWallet = account
let inCoordinatorViewModel = InCoordinatorViewModel(config: config)
let transactionCoordinator = TransactionCoordinator(
@ -204,8 +205,6 @@ class InCoordinator: Coordinator {
navigationController.setNavigationBarHidden(true, animated: false)
addCoordinator(transactionCoordinator)
keystore.recentlyUsedWallet = account
hideTitlesInTabBarController(tabBarController: tabBarController)
showTab(inCoordinatorViewModel.initialTab)

Loading…
Cancel
Save