Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Supplement test output for unrecognized format
Browse files Browse the repository at this point in the history
  • Loading branch information
t-nelson committed Sep 2, 2020
1 parent 4651dbd commit cf16171
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ fn test_ledger_sign_transaction() {
let recipients: Vec<(Pubkey, u64)> = (0..10).map(|_| (Pubkey::new_rand(), 42)).collect();
let instructions = system_instruction::transfer_many(&from, &recipients);
let message = Message::new(&instructions, Some(&ledger_base_pubkey)).serialize();
let hash = solana_sdk::hash::hash(&message);
println!("Expected hash: {}", hash);
let signature = ledger
.sign_message(&derivation_path, &message)
.expect("sign transaction");
Expand Down Expand Up @@ -398,6 +400,8 @@ fn test_sign_full_shred_of_garbage_tx() {
data,
};
let message = Message::new(&[instruction], Some(&ledger_base_pubkey)).serialize();
let hash = solana_sdk::hash::hash(&message);
println!("Expected hash: {}", hash);
let signature = ledger
.sign_message(&derivation_path, &message)
.expect("sign transaction");
Expand Down

0 comments on commit cf16171

Please sign in to comment.