diff --git a/errors/src/errors/cli/cli_errors.rs b/errors/src/errors/cli/cli_errors.rs index 3aa16e2490..27923bb65e 100644 --- a/errors/src/errors/cli/cli_errors.rs +++ b/errors/src/errors/cli/cli_errors.rs @@ -207,6 +207,7 @@ create_messages!( args: (error: impl Display), msg: format!("Failed to execute the `account` command.\nSnarkVM Error: {error}"), help: None, + } @backtraced failed_to_read_environment_private_key { diff --git a/leo/cli/commands/account.rs b/leo/cli/commands/account.rs index 2346062540..471e21bf98 100644 --- a/leo/cli/commands/account.rs +++ b/leo/cli/commands/account.rs @@ -20,7 +20,7 @@ use leo_package::root::Env; use snarkvm::{ cli::dotenv_private_key, console::program::{Signature, ToFields, Value}, - prelude::{Address, FromStr, PrivateKey, ViewKey}, + prelude::{Address, PrivateKey, ViewKey}, }; use crossterm::ExecutableCommand; @@ -131,7 +131,8 @@ impl Command for Account { let priv_key = match discreet { true => { let private_key_input = rpassword::prompt_password("Please enter your private key: ").unwrap(); - FromStr::from_str(&private_key_input).map_err(CliError::failed_to_parse_private_key)? + snarkvm::prelude::FromStr::from_str(&private_key_input) + .map_err(CliError::failed_to_parse_private_key)? } false => match private_key { Some(private_key) => private_key,