Skip to content

Commit

Permalink
refactored login()
Browse files Browse the repository at this point in the history
  • Loading branch information
FroVolod committed Feb 24, 2025
1 parent a98a4c3 commit 65180f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/commands/account/import_account/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,18 @@ pub fn login(

let account_id = loop {
let account_id_from_cli = input_account_id()?;
eprintln!();
if crate::common::verify_account_access_key(
account_id_from_cli.clone(),
public_key.clone(),
network_config.clone(),
)
.is_err()
{
eprintln!("{}", error_message);
tracing::warn!(
parent: &tracing::Span::none(),
"WARNING!{}",
crate::common::indent_payload(error_message)
);

#[derive(strum_macros::Display)]
enum ConfirmOptions {
Expand Down

0 comments on commit 65180f7

Please sign in to comment.