Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeantonio21 committed Dec 8, 2022
1 parent 84c2870 commit 179794a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions applications/tari_console_wallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,8 @@ pub fn run_wallet_with_cli(runtime: Runtime, config: &mut ApplicationConfig, cli
);
}

let on_init = match boot_mode {
WalletBoot::New => true,
_ => false,
};
let on_recovery = recovery_seed.is_none();
let on_init = matches!(boot_mode, WalletBoot::New);
let not_recovery = recovery_seed.is_none();

// initialize wallet
let mut wallet = runtime.block_on(init_wallet(
Expand All @@ -152,7 +149,7 @@ pub fn run_wallet_with_cli(runtime: Runtime, config: &mut ApplicationConfig, cli
))?;

// if wallet is being set for the first time, wallet seed words are prompted on the screen
if !cli.non_interactive_mode && on_recovery && on_init {
if !cli.non_interactive_mode && not_recovery && on_init {
match confirm_seed_words(&mut wallet) {
Ok(()) => {
print!("\x1Bc"); // Clear the screen
Expand Down

0 comments on commit 179794a

Please sign in to comment.