Skip to content

Commit

Permalink
chore: add span
Browse files Browse the repository at this point in the history
  • Loading branch information
tringuyenskymavis committed Aug 9, 2024
1 parent 42ab3a5 commit ac81f44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/cli/src/utils/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,11 @@ pub async fn print_traces(result: &mut TraceResult, decoder: &CallTraceDecoder)
if result.success {
let successful_str = "Transaction successfully executed.";
println!("{}", successful_str.green());
trace_str.push_str(successful_str);
trace_str.push_str(&format!("<span class='tx-success'>{successful_str}</span>"));
} else {
let faild_str = "Transaction failed.";
println!("{}", faild_str.red());
trace_str.push_str(faild_str);
trace_str.push_str(&format!("<span class='tx-failed'>{faild_str}</span>"));
}

let gas_used = format!("\nGas used: {}", result.gas_used);
Expand Down

0 comments on commit ac81f44

Please sign in to comment.