fix cw wallet restores from backup

This commit is contained in:
sneurlax 2024-08-10 22:46:09 -05:00
parent 7446a56631
commit e383c6202a

View file

@ -486,7 +486,13 @@ abstract class SWB {
privateKey: privateKey,
);
await wallet.init();
if (wallet is MoneroWallet /*|| wallet is WowneroWallet doesn't work.*/) {
await wallet.init(isRestore: true);
} else if (wallet is WowneroWallet) {
await wallet.init(isRestore: true);
} else {
await wallet.init();
}
int restoreHeight = walletbackup['restoreHeight'] as int? ?? 0;
if (restoreHeight <= 0) {