fix pointer when restoring depracated wownero seed

This commit is contained in:
Czarek Nakamoto 2024-07-29 16:12:11 +02:00
parent 2591b53e9f
commit d3c079f1cf

View file

@ -67,10 +67,12 @@ void restoreWalletFromSeedSync(
language: seed, // I KNOW - this is supposed to be called seed language: seed, // I KNOW - this is supposed to be called seed
networkType: 0, networkType: 0,
); );
final oldwptr = wptr;
wptr = newWptr;
setRefreshFromBlockHeight( setRefreshFromBlockHeight(
height: wownero.WOWNERO_deprecated_14WordSeedHeight(seed: seed), height: wownero.WOWNERO_deprecated_14WordSeedHeight(seed: seed),
); );
wptr = oldwptr;
} else { } else {
txhistory = null; txhistory = null;
newWptr = wownero.WalletManager_recoveryWallet( newWptr = wownero.WalletManager_recoveryWallet(