CAKE-343 | fixed contact_list_view_model.dart and updateAddressInfo() in the monero_wallet.dart

This commit is contained in:
OleksandrSobol 2021-07-07 12:29:33 +03:00
parent 6709b7779a
commit c72245d904
2 changed files with 2 additions and 2 deletions

View file

@ -454,7 +454,7 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
accountList.accounts.forEach((account) {
_subaddressList.update(accountIndex: account.id);
_subaddressList.subaddresses.forEach((subaddress) {
_addresses.addAll({subaddress.address:subaddress.label});
_addresses[subaddress.address] = subaddress.label;
});
});

View file

@ -20,7 +20,7 @@ abstract class ContactListViewModelBase with Store {
walletInfoSource.values.forEach((info) {
if (info.address?.isNotEmpty ?? false) {
if (info.addresses != null) {
info.addresses.forEach((address, label) {
info.addresses?.forEach((address, label) {
walletContacts.add(WalletContact(
address,
info.name + ' ($label)',