From d3c079f1cf0d429ed1d7218dbd5d0cf515acd30d Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Mon, 29 Jul 2024 16:12:11 +0200 Subject: [PATCH] fix pointer when restoring depracated wownero seed --- cw_wownero/lib/api/wallet_manager.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cw_wownero/lib/api/wallet_manager.dart b/cw_wownero/lib/api/wallet_manager.dart index 4c3b67217..cb18a918a 100644 --- a/cw_wownero/lib/api/wallet_manager.dart +++ b/cw_wownero/lib/api/wallet_manager.dart @@ -67,10 +67,12 @@ void restoreWalletFromSeedSync( language: seed, // I KNOW - this is supposed to be called seed networkType: 0, ); - + final oldwptr = wptr; + wptr = newWptr; setRefreshFromBlockHeight( height: wownero.WOWNERO_deprecated_14WordSeedHeight(seed: seed), ); + wptr = oldwptr; } else { txhistory = null; newWptr = wownero.WalletManager_recoveryWallet(