Skip to content

Commit

Permalink
style: prompt phrase
Browse files Browse the repository at this point in the history
  • Loading branch information
azerpas committed Aug 7, 2023
1 parent a03fda4 commit cdd0090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ pub fn decrypt_wallet_data() -> Result<Wallet<SigningKey>> {
/// ## Returns
/// The mnemonic as a string
fn ask_for_mnemonic() -> Result<String> {
print!("Enter mnemonic: ");
print!("Enter mnemonic/seedphrase: ");
stdout().flush()?;

let mut mnemonic = String::new();
stdin().read_line(&mut mnemonic)?;

if !is_valid_seed_phrase(&mnemonic) {
println!("Invalid seed phrase, please try again");
println!("\nInvalid seed phrase, please try again");
return ask_for_mnemonic();
}

Expand Down

0 comments on commit cdd0090

Please sign in to comment.