From 75b811f9de936cd12e387d13800759548820fe8d Mon Sep 17 00:00:00 2001 From: cyan Date: Wed, 13 Aug 2025 00:32:12 -0400 Subject: [PATCH] fix: key image comparision (#2448) * fix: key image comparision * Revert "fix: frozen coins displaying incorrect amounts in monero (#2385)" This reverts commit b6a7dde8e4a46da7e5cc82019c26876d4fa5d01b. --- cw_monero/lib/api/coins_info.dart | 3 +-- cw_monero/lib/monero_wallet.dart | 8 +++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/cw_monero/lib/api/coins_info.dart b/cw_monero/lib/api/coins_info.dart index b08dbb1f7..2f09f6e59 100644 --- a/cw_monero/lib/api/coins_info.dart +++ b/cw_monero/lib/api/coins_info.dart @@ -38,8 +38,7 @@ Future 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; } } diff --git a/cw_monero/lib/monero_wallet.dart b/cw_monero/lib/monero_wallet.dart index eceac205b..e547f5403 100644 --- a/cw_monero/lib/monero_wallet.dart +++ b/cw_monero/lib/monero_wallet.dart @@ -879,12 +879,10 @@ abstract class MoneroWalletBase extends WalletBase