Skip to content

Commit

Permalink
fix(wallet): clear the console after seeing the seed words. (#3093)
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Jul 14, 2021
2 parents ffd7abf + 17544aa commit 7b1c29d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion applications/tari_console_wallet/src/init/mod.rs
Expand Up @@ -426,7 +426,14 @@ pub async fn init_wallet(
debug!(target: LOG_TARGET, "Wallet encrypted.");

if interactive && recovery_master_key.is_none() {
confirm_seed_words(&mut wallet).await?;
match confirm_seed_words(&mut wallet).await {
Ok(()) => {
print!("\x1Bc"); // Clear the screen
},
Err(error) => {
return Err(error);
},
};
}
if let Some(file_name) = seed_words_file_name {
let seed_words = wallet.output_manager_service.get_seed_words().await?.join(" ");
Expand Down

0 comments on commit 7b1c29d

Please sign in to comment.