fix: key image comparision (#2448)

* fix: key image comparision

* Revert "fix: frozen coins displaying incorrect amounts in monero (#2385)"

This reverts commit b6a7dde8e4.
This commit is contained in:
cyan
2025-08-13 07:32:12 +03:00
committed by GitHub
parent b8a9863a21
commit 75b811f9de
2 changed files with 4 additions and 7 deletions
+1 -2
View File
@@ -38,8 +38,7 @@ Future<int?> getCoinByKeyImage(String keyImage) async {
final count = await countOfCoins();
for (int i = 0; i < count; i++) {
final coin = await getCoin(i);
final coinAddress = coin.keyImage;
if (keyImage == coinAddress) {
if (keyImage == coin.keyImage()) {
return i;
}
}
+3 -5
View File
@@ -879,12 +879,10 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
}
void _askForUpdateBalance() {
final _ub = _getUnlockedBalance();
final _fb =_getFrozenBalance();
final unlockedBalance = _ub - _fb;
final unlockedBalance = _getUnlockedBalance();
final fullBalance = monero_wallet.getFullBalance(
accountIndex: walletAddresses.account!.id) - _fb;
final frozenBalance = _fb;
accountIndex: walletAddresses.account!.id);
final frozenBalance = _getFrozenBalance();
if (balance[currency]!.fullBalance != fullBalance ||
balance[currency]!.unlockedBalance != unlockedBalance ||
balance[currency]!.frozenBalance != frozenBalance) {