Skip to content

Commit

Permalink
tx_signer: debug transaction hex (#145)
Browse files Browse the repository at this point in the history
Adds a `debug!` directive which prints the entire transaction as hex
  • Loading branch information
tony-iqlusion authored Oct 5, 2020
1 parent 3e3ae75 commit b5c889d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tx_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,12 @@ impl TxSigner {
tx.to_amino_bytes(self.tx_builder.schema().namespace()),
);

debug!(
"[{}] broadcasting TX: {:X?}",
self.chain_id,
amino_tx.as_ref()
);

let response = self.rpc_client.broadcast_tx_sync(amino_tx).await?;

if response.code.is_ok() {
Expand Down

0 comments on commit b5c889d

Please sign in to comment.