Compare lowercase addresses to match accounts

This commit is contained in:
Ivan Grachev 2022-08-25 14:03:49 +03:00
parent 618a190dba
commit 38ca1d7194

View File

@ -86,7 +86,7 @@ final class WalletsManager {
func getSpecificAccount(coin: CoinType, address: String) -> SpecificWalletAccount? {
for wallet in wallets {
if let account = wallet.accounts.first(where: { $0.coin == coin && $0.address == address }) {
if let account = wallet.accounts.first(where: { $0.coin == coin && $0.address.lowercased() == address.lowercased() }) {
return SpecificWalletAccount(walletId: wallet.id, account: account)
}
}