Skip to content

Commit

Permalink
feat: Show hash-to-sign when using the sign_later transaction signatu…
Browse files Browse the repository at this point in the history
…re option (#261)
  • Loading branch information
jjambazov-bc authored Nov 21, 2023
1 parent 7062f1a commit 74b3ada
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/transaction_signature_options/sign_later/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ impl DisplayContext {
actions: previous_context.prepopulated_transaction.actions,
};

eprintln!(
"\nTransaction hash to sign:\n{}",
hex::encode(unsigned_transaction.get_hash_and_size().0)
);

eprintln!(
"\nUnsigned transaction (serialized as base64):\n{}\n",
crate::types::transaction::TransactionAsBase64::from(unsigned_transaction)
Expand Down

0 comments on commit 74b3ada

Please sign in to comment.