This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
token/program-2022-test/tests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -867,11 +867,12 @@ async fn confidential_transfer_withdraw_withheld_tokens_from_mint_with_proof_con
867
867
instruction_type. encode_verify_proof( Some ( context_state_info) , & proof_data) ,
868
868
] ;
869
869
870
+ let recent_blockhash = ctx. get_new_latest_blockhash ( ) . await . unwrap ( ) ;
870
871
let tx = Transaction :: new_signed_with_payer (
871
872
& instructions,
872
873
Some ( & ctx. payer . pubkey ( ) ) ,
873
874
& [ & ctx. payer , & context_state_account] ,
874
- ctx . last_blockhash ,
875
+ recent_blockhash ,
875
876
) ;
876
877
ctx. banks_client . process_transaction ( tx) . await . unwrap ( ) ;
877
878
}
@@ -1034,11 +1035,12 @@ async fn confidential_transfer_withdraw_withheld_tokens_from_accounts_with_proof
1034
1035
instruction_type. encode_verify_proof( Some ( context_state_info) , & proof_data) ,
1035
1036
] ;
1036
1037
1038
+ let recent_blockhash = ctx. get_new_latest_blockhash ( ) . await . unwrap ( ) ;
1037
1039
let tx = Transaction :: new_signed_with_payer (
1038
1040
& instructions,
1039
1041
Some ( & ctx. payer . pubkey ( ) ) ,
1040
1042
& [ & ctx. payer , & context_state_account] ,
1041
- ctx . last_blockhash ,
1043
+ recent_blockhash ,
1042
1044
) ;
1043
1045
ctx. banks_client . process_transaction ( tx) . await . unwrap ( ) ;
1044
1046
}
You can’t perform that action at this time.
0 commit comments