Skip to content

Commit

Permalink
Print name of wallet file when creating it
Browse files Browse the repository at this point in the history
Previously if a user ran with the default wallet file
name which is wallet.teleport, then it would be very unobvious
where their wallet is now
  • Loading branch information
chris-belcher committed May 24, 2022
1 parent da30210 commit 3899444
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Expand Up @@ -132,7 +132,6 @@ pub fn generate_wallet(wallet_file_name: &PathBuf) -> std::io::Result<()> {
&Vec::<_>::new(),
)
.unwrap();

println!("Write down this seed phrase =\n{}", mnemonic.to_string());
if !extension.trim().is_empty() {
println!("And this extension =\n\"{}\"", extension);
Expand All @@ -141,6 +140,7 @@ pub fn generate_wallet(wallet_file_name: &PathBuf) -> std::io::Result<()> {
"\nThis seed phrase is NOT enough to backup all coins in your wallet\n\
The teleport wallet file is needed to backup swapcoins"
);
println!("\nSaved to file `{}`", wallet_file_name.to_string_lossy());

Ok(())
}
Expand All @@ -162,6 +162,7 @@ pub fn recover_wallet(wallet_file_name: &PathBuf) -> std::io::Result<()> {
extension = extension.trim().to_string();

Wallet::save_new_wallet_file(&wallet_file_name, seed_phrase, extension).unwrap();
println!("\nSaved to file `{}`", wallet_file_name.to_string_lossy());
Ok(())
}

Expand Down

0 comments on commit 3899444

Please sign in to comment.