Skip to content

chore(tx-submitter): add tx hash when transaction is successfully sent #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/submit_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ async fn send_transaction(provider: Provider, recipient_address: Address) {

// wait for the transaction to mine
let receipt = result.get_receipt().await.unwrap();
let hash = receipt.transaction_hash.to_string();

// record metrics for how long it took to mine the transaction
let mine_time = dispatch_start_time.elapsed().as_secs();
tracing::debug!(success = receipt.status(), mine_time, "transaction mined");
tracing::debug!(success = receipt.status(), mine_time, hash, "transaction mined");
histogram!("integration.tx_mine_time").record(mine_time as f64);
}

Expand Down
Loading