mirror of
https://github.com/lil-org/tokenary.git
synced 2024-11-30 13:02:49 +03:00
Compare lowercase addresses to match accounts
This commit is contained in:
parent
618a190dba
commit
38ca1d7194
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user