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; }