From e1da71a1d1a0a9e90bb2c1c528ddbb5ca64a863e Mon Sep 17 00:00:00 2001 From: leo1234 Date: Wed, 6 Mar 2024 17:47:22 +0800 Subject: [PATCH] added logging for get status/get info --- cw_zano/lib/api/wallet.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cw_zano/lib/api/wallet.dart b/cw_zano/lib/api/wallet.dart index bafef1151..b29d50159 100644 --- a/cw_zano/lib/api/wallet.dart +++ b/cw_zano/lib/api/wallet.dart @@ -56,12 +56,14 @@ class SyncListener { }*/ var json = ApiCalls.getWalletStatus(hWallet: hWallet); + print('wallet status $json'); final status = GetWalletStatusResult.fromJson(jsonDecode(json) as Map); // You can call getWalletInfo ONLY if getWalletStatus returns NOT is in long refresh and wallet state is 2 (ready) if (!status.isInLongRefresh && status.walletState == 2) { final syncHeight = status.currentWalletHeight; json = ApiCalls.getWalletInfo(hWallet); + print('wallet info $json'); final result = GetWalletInfoResult.fromJson(jsonDecode(json) as Map); wallet.seed = result.wiExtended.seed; wallet.keys = ZanoWalletKeys(