Skip to content

Commit

Permalink
add tracing of tx hex
Browse files Browse the repository at this point in the history
  • Loading branch information
willemolding committed Sep 9, 2024
1 parent f5e168a commit e7e9b6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ tracing-web = "0.1.3"
tracing-subscriber = "0.3.18"
tracing = "0.1.40"
nonempty = "0.7"
hex = "0.4.3"

[dev-dependencies]
wasm-bindgen-test = "0.3.42"
Expand Down
2 changes: 2 additions & 0 deletions src/bindgen/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@ impl Wallet {
})
.unwrap();

tracing::info!("Transaction hex: 0x{}", hex::encode(&raw_tx.data));

let response = self.client.send_transaction(raw_tx).await?.into_inner();

if response.error_code != 0 {
Expand Down

0 comments on commit e7e9b6c

Please sign in to comment.