From e266e512b124463fb0631ad4729c137b6c81b927 Mon Sep 17 00:00:00 2001 From: Anton Yemelyanov Date: Wed, 1 Nov 2023 20:37:03 +0200 Subject: [PATCH] merge imports --- cli/src/modules/import.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cli/src/modules/import.rs b/cli/src/modules/import.rs index ec809f86f..a223d6fd9 100644 --- a/cli/src/modules/import.rs +++ b/cli/src/modules/import.rs @@ -28,9 +28,14 @@ impl Import { "legacy" => { if exists_legacy_v0_keydata().await? { let import_secret = Secret::new( - ctx.term().ask(true, "Enter the password for the wallet you are importing:").await?.trim().as_bytes().to_vec(), + ctx.term() + .ask(true, "Enter the password for the account you are importing: ") + .await? + .trim() + .as_bytes() + .to_vec(), ); - let wallet_secret = Secret::new(ctx.term().ask(true, "Enter wallet password:").await?.trim().as_bytes().to_vec()); + let wallet_secret = Secret::new(ctx.term().ask(true, "Enter wallet password: ").await?.trim().as_bytes().to_vec()); wallet.import_gen0_keydata(import_secret, wallet_secret, None).await?; } else if application_runtime::is_web() { return Err("'kaspanet' web wallet storage not found at this domain name".into());