Cw 925 improve automatic subaddress generation behavior (#2217)

* fix: update usedAddresses for monero

* fix: subaddresses generation for bitcoin

* fix: minor fix

* fix: update receive address UI when used

* minor fix [skip ci]
This commit is contained in:
Serhii 2025-04-30 19:11:36 +03:00 committed by GitHub
parent b25cb527cb
commit 4448adb49d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 29 additions and 23 deletions

View file

@ -130,8 +130,8 @@ abstract class MoneroWalletAddressesBase extends WalletAddresses with Store {
final transactions = _moneroTransactionHistory.transactions.values.toList();
transactions.forEach((element) {
final accountIndex = element.accountIndex;
final addressIndex = element.addressIndex;
final accountIndex = element.additionalInfo['accountIndex'] as int? ?? 0;
final addressIndex = element.additionalInfo['addressIndex'] as int? ?? 0;
usedAddresses.add(getAddress(accountIndex: accountIndex, addressIndex: addressIndex));
});
}