mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user