Skip to content

Commit 5ece0db

Browse files
committed
add logs to tx submitter for debugging
1 parent 0a3a830 commit 5ece0db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/submit_transaction.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ async fn main() {
6969

7070
async fn send_transaction(provider: &HostProvider, recipient_address: Address) {
7171
// construct simple transaction to send ETH to a recipient
72+
let nonce = provider.get_transaction_count(provider.default_signer_address()).await.unwrap();
73+
debug!(nonce, "transaction submitter - nonce");
74+
7275
let tx = TransactionRequest::default()
7376
.with_from(provider.default_signer_address())
7477
.with_to(recipient_address)

0 commit comments

Comments
 (0)