mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 12:29:31 +00:00
CAKE-343 | fixed contact_list_view_model.dart and updateAddressInfo() in the monero_wallet.dart
This commit is contained in:
parent
6709b7779a
commit
c72245d904
2 changed files with 2 additions and 2 deletions
|
@ -454,7 +454,7 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
|
||||||
accountList.accounts.forEach((account) {
|
accountList.accounts.forEach((account) {
|
||||||
_subaddressList.update(accountIndex: account.id);
|
_subaddressList.update(accountIndex: account.id);
|
||||||
_subaddressList.subaddresses.forEach((subaddress) {
|
_subaddressList.subaddresses.forEach((subaddress) {
|
||||||
_addresses.addAll({subaddress.address:subaddress.label});
|
_addresses[subaddress.address] = subaddress.label;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ abstract class ContactListViewModelBase with Store {
|
||||||
walletInfoSource.values.forEach((info) {
|
walletInfoSource.values.forEach((info) {
|
||||||
if (info.address?.isNotEmpty ?? false) {
|
if (info.address?.isNotEmpty ?? false) {
|
||||||
if (info.addresses != null) {
|
if (info.addresses != null) {
|
||||||
info.addresses.forEach((address, label) {
|
info.addresses?.forEach((address, label) {
|
||||||
walletContacts.add(WalletContact(
|
walletContacts.add(WalletContact(
|
||||||
address,
|
address,
|
||||||
info.name + ' ($label)',
|
info.name + ' ($label)',
|
||||||
|
|
Loading…
Reference in a new issue