Skip to content

Commit

Permalink
token-2022: Fix test because of blockhash not updating (#5877)
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque authored Nov 21, 2023
1 parent 8fc7ce1 commit eb1905e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions token/program-2022-test/tests/token_metadata_remove_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async fn success_remove() {
let mut context = test_context.context.lock().await;

// refresh blockhash before trying again
context.get_new_latest_blockhash().await.unwrap();
let blockhash = context.get_new_latest_blockhash().await.unwrap();
let transaction = Transaction::new_signed_with_payer(
&[remove_key(
&spl_token_2022::id(),
Expand All @@ -156,7 +156,7 @@ async fn success_remove() {
)],
Some(&context.payer.pubkey()),
&[&context.payer, &update_authority],
context.last_blockhash,
blockhash,
);
let error = context
.banks_client
Expand Down

0 comments on commit eb1905e

Please sign in to comment.