fix: ci run

This commit is contained in:
Halimao 2024-02-12 15:54:39 +08:00
parent 8dbb484b89
commit 9297c442d3
2 changed files with 4 additions and 2 deletions

View File

@ -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 {

View File

@ -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,