Skip to content

Commit

Permalink
Merge pull request #398 from Adamant-im/dev/trello.com/c/4Xsjaskd
Browse files Browse the repository at this point in the history
[trello.com/c/4Xsjaskd] fix: load old transactions after re-login
  • Loading branch information
StanislavDevIOS authored Nov 30, 2023
2 parents 9fac0e1 + 68facd7 commit 6c78795
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Adamant/Modules/Wallets/Bitcoin/BtcWalletService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ final class BtcWalletService: WalletService {
self?.balanceObserver = nil
}
self?.coinStorage.clear()
self?.hasMoreOldTransactions = true
self?.transactions = []
}
.store(in: &subscriptions)
}
Expand Down
2 changes: 2 additions & 0 deletions Adamant/Modules/Wallets/Dash/DashWalletService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ final class DashWalletService: WalletService {
self?.balanceObserver = nil
}
self?.coinStorage.clear()
self?.hasMoreOldTransactions = true
self?.historyTransactions = []
}
.store(in: &subscriptions)
}
Expand Down
2 changes: 2 additions & 0 deletions Adamant/Modules/Wallets/Doge/DogeWalletService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ final class DogeWalletService: WalletService {
self?.balanceObserver = nil
}
self?.coinStorage.clear()
self?.hasMoreOldTransactions = true
self?.historyTransactions = []
}
.store(in: &subscriptions)
}
Expand Down
2 changes: 2 additions & 0 deletions Adamant/Modules/Wallets/ERC20/ERC20WalletService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ final class ERC20WalletService: WalletService {
self?.balanceObserver = nil
}
self?.coinStorage.clear()
self?.hasMoreOldTransactions = true
self?.historyTransactions = []
}
.store(in: &subscriptions)
}
Expand Down
2 changes: 2 additions & 0 deletions Adamant/Modules/Wallets/Ethereum/EthWalletService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ final class EthWalletService: WalletService {
self?.balanceObserver = nil
}
self?.coinStorage.clear()
self?.hasMoreOldTransactions = true
self?.historyTransactions = []
}
.store(in: &subscriptions)
}
Expand Down
2 changes: 2 additions & 0 deletions Adamant/Modules/Wallets/Lisk/LskWalletService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ final class LskWalletService: WalletService {
self?.balanceObserver = nil
}
self?.coinStorage.clear()
self?.hasMoreOldTransactions = true
self?.transactions = []
}
.store(in: &subscriptions)
}
Expand Down

0 comments on commit 6c78795

Please sign in to comment.