Skip to content

Commit

Permalink
fix cw wallet restores from backup
Browse files Browse the repository at this point in the history
  • Loading branch information
sneurlax committed Aug 11, 2024
1 parent 7446a56 commit e383c62
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e383c62

Please sign in to comment.