fix(cw_monero): wrong function in account rename call (#2183)

This commit is contained in:
cyan 2025-04-10 23:17:52 +02:00 committed by GitHub
parent 3f25d69244
commit ea9b87d480
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 13 deletions

View file

@ -48,8 +48,7 @@ void addAccountSync({required String label}) {
}
void setLabelForAccountSync({required int accountIndex, required String label}) {
// TODO(mrcyjanek): this may be wrong function?
wownero.Wallet_setSubaddressLabel(wptr!, accountIndex: accountIndex, addressIndex: 0, label: label);
wownero.SubaddressAccount_setLabel(subaddressAccount!, accountIndex: accountIndex, label: label);
}
void _addAccount(String label) => addAccountSync(label: label);