Skip to content

Commit

Permalink
chore: remove span tag in foundry response
Browse files Browse the repository at this point in the history
  • Loading branch information
thuchoskym committed Aug 13, 2024
1 parent 08efd72 commit 45c8057
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 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(&format!("<span class='tx-success'>{successful_str}</span>"));
trace_str.push_str(&format!("{successful_str}"));
} else {
let faild_str = "Transaction failed.";
println!("{}", faild_str.red());
trace_str.push_str(&format!("<span class='tx-failed'>{faild_str}</span>"));
trace_str.push_str(&format!("{faild_str}"));
}

let gas_used = format!("\nGas used: {}", result.gas_used);
Expand Down Expand Up @@ -466,9 +466,9 @@ pub async fn get_ronin_labels(
(address_str.parse::<Address>().unwrap(), item["name"].as_str())
{
if addresses.contains(&address) {
result.insert(address, format!("<span>{}</span>", name));
result.insert(address, format!("{}", name));
} else {
result.insert(address, format!("<span>{}</span>", address));
result.insert(address, format!("{}", address));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/evm/traces/src/decoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ impl CallTraceDecoder {
if let Some(mut function) =
identifier.write().await.identify_function(selector).await
{
function.name = format!("<span>{}</span>", function.name);
function.name = format!("{}", function.name);
functions.push(function);
}
}
Expand Down

0 comments on commit 45c8057

Please sign in to comment.