Skip to content

Commit

Permalink
merge imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Nov 1, 2023
1 parent af28b89 commit e266e51
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cli/src/modules/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit e266e51

Please sign in to comment.