From 0667e7fdcc87dfddf7fee768380303b022aaff44 Mon Sep 17 00:00:00 2001 From: Blazebrain Date: Fri, 23 Jun 2023 06:08:06 +0100 Subject: [PATCH] Implement sweep all WIP --- cw_monero/lib/monero_wallet.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cw_monero/lib/monero_wallet.dart b/cw_monero/lib/monero_wallet.dart index 5555973e4..4375105c4 100644 --- a/cw_monero/lib/monero_wallet.dart +++ b/cw_monero/lib/monero_wallet.dart @@ -396,8 +396,12 @@ abstract class MoneroWalletBase extends WalletBase monero_wallet.getFullBalance(accountIndex: walletAddresses.account!.id); - int _getUnlockedBalance() => monero_wallet.getUnlockedBalance( - accountIndex: walletAddresses.account!.id); + int _getUnlockedBalance() { + final unlockedBalance = monero_wallet.getUnlockedBalance( + accountIndex: walletAddresses.account!.id); + print('Unlocked balance within the function: $unlockedBalance'); + return unlockedBalance; + } void _onNewBlock(int height, int blocksLeft, double ptc) async { print('----------------');