From 40adf669eb256d43dcdec4443bac807378210db9 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Wed, 16 Oct 2024 14:28:44 +0200 Subject: [PATCH] fix frozen balance --- cw_monero/lib/monero_wallet.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cw_monero/lib/monero_wallet.dart b/cw_monero/lib/monero_wallet.dart index 60c536b42..3a64715f7 100644 --- a/cw_monero/lib/monero_wallet.dart +++ b/cw_monero/lib/monero_wallet.dart @@ -696,9 +696,8 @@ abstract class MoneroWalletBase extends WalletBase element.walletId == id && element.accountIndex == walletAddresses.account!.id)) { - if (coin.isFrozen) frozenBalance += coin.value; + if (coin.isFrozen && !coin.isSending) frozenBalance += coin.value; } - return frozenBalance; }