Skip to content

Commit

Permalink
The blockhash in the test.rs file is now updated to use the 'get_new_…
Browse files Browse the repository at this point in the history
…latest_blockhash' function instead of directly calling 'last_blockhash'.
  • Loading branch information
sergeytimoshin committed Apr 2, 2024
1 parent c81034b commit 5590140
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions programs/compressed-pda/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ async fn test_with_compression() {
&[instruction],
Some(&payer_pubkey),
&[&payer],
context.last_blockhash,
context.get_new_latest_blockhash().await.unwrap(),
);
let res = solana_program_test::BanksClient::process_transaction_with_metadata(
&mut context.banks_client,
Expand Down Expand Up @@ -609,7 +609,7 @@ async fn test_with_compression() {
&[instruction],
Some(&payer_pubkey),
&[&payer],
context.last_blockhash,
context.get_new_latest_blockhash().await.unwrap(),
);
let res = solana_program_test::BanksClient::process_transaction_with_metadata(
&mut context.banks_client,
Expand Down Expand Up @@ -649,7 +649,7 @@ async fn test_with_compression() {
&[instruction],
Some(&payer_pubkey),
&[&payer],
context.last_blockhash,
context.get_new_latest_blockhash().await.unwrap(),
);
let res = solana_program_test::BanksClient::process_transaction_with_metadata(
&mut context.banks_client,
Expand Down Expand Up @@ -728,7 +728,7 @@ async fn test_with_compression() {
&[instruction],
Some(&payer_pubkey),
&[&payer],
context.last_blockhash,
context.get_new_latest_blockhash().await.unwrap(),
);
println!("Transaction with zkp -------------------------");

Expand Down Expand Up @@ -770,7 +770,7 @@ async fn test_with_compression() {
&[instruction],
Some(&payer_pubkey),
&[&payer],
context.last_blockhash,
context.get_new_latest_blockhash().await.unwrap(),
);
println!("Transaction with zkp -------------------------");

Expand Down

0 comments on commit 5590140

Please sign in to comment.