From fe397c2e4735b91d6631b71cea41bbab599bbf9c Mon Sep 17 00:00:00 2001 From: cyan Date: Wed, 22 Jul 2026 05:25:05 -0700 Subject: [PATCH] fix: proper migration path (#3430) --- cw_zcash/lib/src/migrate.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cw_zcash/lib/src/migrate.dart b/cw_zcash/lib/src/migrate.dart index e76e4d9b7..492376dbb 100644 --- a/cw_zcash/lib/src/migrate.dart +++ b/cw_zcash/lib/src/migrate.dart @@ -71,7 +71,7 @@ Future 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 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; }