Reduce visibility of Hash struct contents

This commit is contained in:
Michael Vines
2021-10-18 21:59:12 -07:00
parent 3f559cc2c9
commit 2b76ea51b4
5 changed files with 9 additions and 7 deletions

View File

@ -740,7 +740,7 @@ mod tests {
message.account_keys.push(pubkey1);
message.account_keys.push(pubkey1);
message.header.num_required_signatures = NUM_SIG as u8;
message.recent_blockhash = Hash(pubkey1.to_bytes());
message.recent_blockhash = Hash::new_from_array(pubkey1.to_bytes());
let mut tx = Transaction::new_unsigned(message);
info!("message: {:?}", tx.message_data());