Skip to content

Commit

Permalink
fix erroneous log
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Dec 11, 2024
1 parent 577a8ba commit a720f76
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions crates/core/src/spammer/tx_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,17 @@ where
.expect("this should never happen");
if !receipt.status() {
println!("tx failed: {:?}", pending_tx.tx_hash);
} else {
println!(
"tx landed. hash={}\tgas_used={}\tblock_num={}",
pending_tx.tx_hash,
receipt.gas_used,
receipt
.block_number
.map(|n| n.to_string())
.unwrap_or("N/A".to_owned())
);
}
println!(
"tx landed. hash={}\tgas_used={}\tblock_num={}",
pending_tx.tx_hash,
receipt.gas_used,
receipt
.block_number
.map(|n| n.to_string())
.unwrap_or("N/A".to_owned())
);
RunTx {
tx_hash: pending_tx.tx_hash,
start_timestamp: pending_tx.start_timestamp,
Expand Down

0 comments on commit a720f76

Please sign in to comment.