mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
fix: proper migration path (#3430)
This commit is contained in:
@@ -71,7 +71,7 @@ Future<void> migrateOldSqliteToZkool2({required final String walletName}) async
|
||||
if (ya.idAccount != walletId) {
|
||||
continue;
|
||||
}
|
||||
printV("migrating account: ${ya.name}");
|
||||
printV("migrating account: ${ya.name} - ${walletName}");
|
||||
int birthHeight = await ZcashHeight.getBlockHeightByTime(DateTime(2026, 1, 1));
|
||||
|
||||
final accTxs = await migrateDb.rawQuery(
|
||||
@@ -83,12 +83,12 @@ Future<void> migrateOldSqliteToZkool2({required final String walletName}) async
|
||||
}
|
||||
|
||||
final accountId = await ZcashWalletBase.restoreZcashWalletFromSeed(
|
||||
name: ya.name,
|
||||
name: walletName,
|
||||
seed: ya.zkoolSeed.seed,
|
||||
passphrase: ya.zkoolSeed.passphrase,
|
||||
birthHeight: birthHeight,
|
||||
);
|
||||
await ZcashWalletBase.saveAccountId(ya.name, accountId);
|
||||
await ZcashWalletBase.saveAccountId(walletName, accountId);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user