Skip to content

Commit

Permalink
fix: audit flags activated independently
Browse files Browse the repository at this point in the history
  • Loading branch information
grumbach committed May 20, 2024
1 parent a4257b7 commit 22cac19
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions sn_cli/src/bin/subcommands/wallet/audit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,21 @@ pub async fn audit(
let dag = gather_spend_dag(client, root_dir, fast_mode).await?;

if to_dot {
println!("========================== spends DAG digraph =============================");
println!("========================== spends DAG digraph ==========================");
println!("{}", dag.dump_dot_format());
} else if let Some(sk) = foundation_sk {
}
if let Some(sk) = foundation_sk {
println!(
"======================= payment forward statistics =========================="
"========================== payment forward statistics =========================="
);
println!("{}", dag.dump_payment_forward_statistics(&sk));
} else if royalties {
}
if royalties {
let royalties = dag.all_royalties()?;
redeem_royalties(royalties, client, root_dir).await?;
} else {
println!("Audit completed successfully.");
}

println!("Audit completed successfully.");
Ok(())
}

Expand Down

0 comments on commit 22cac19

Please sign in to comment.