Skip to content

Commit

Permalink
fix: ci run
Browse files Browse the repository at this point in the history
  • Loading branch information
Halimao committed Feb 12, 2024
1 parent 8dbb484 commit 9297c44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions errors/src/errors/cli/cli_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 3 additions & 2 deletions leo/cli/commands/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9297c44

Please sign in to comment.