@@ -1621,11 +1621,12 @@ async fn confidential_transfer_configure_token_account_with_proof_context() {
1621
1621
instruction_type. encode_verify_proof( Some ( context_state_info) , & proof_data) ,
1622
1622
] ;
1623
1623
1624
+ let last_blockhash = ctx. get_new_latest_blockhash ( ) . await . unwrap ( ) ;
1624
1625
let tx = Transaction :: new_signed_with_payer (
1625
1626
& instructions,
1626
1627
Some ( & ctx. payer . pubkey ( ) ) ,
1627
1628
& [ & ctx. payer , & context_state_account] ,
1628
- ctx . last_blockhash ,
1629
+ last_blockhash,
1629
1630
) ;
1630
1631
ctx. banks_client . process_transaction ( tx) . await . unwrap ( ) ;
1631
1632
}
@@ -1707,11 +1708,12 @@ async fn confidential_transfer_configure_token_account_with_proof_context() {
1707
1708
instruction_type. encode_verify_proof( Some ( context_state_info) , & proof_data) ,
1708
1709
] ;
1709
1710
1711
+ let last_blockhash = ctx. get_new_latest_blockhash ( ) . await . unwrap ( ) ;
1710
1712
let tx = Transaction :: new_signed_with_payer (
1711
1713
& instructions,
1712
1714
Some ( & ctx. payer . pubkey ( ) ) ,
1713
1715
& [ & ctx. payer , & context_state_account] ,
1714
- ctx . last_blockhash ,
1716
+ last_blockhash,
1715
1717
) ;
1716
1718
ctx. banks_client . process_transaction ( tx) . await . unwrap ( ) ;
1717
1719
}
@@ -1793,11 +1795,12 @@ async fn confidential_transfer_empty_account_with_proof_context() {
1793
1795
instruction_type. encode_verify_proof( Some ( context_state_info) , & proof_data) ,
1794
1796
] ;
1795
1797
1798
+ let last_blockhash = ctx. get_new_latest_blockhash ( ) . await . unwrap ( ) ;
1796
1799
let tx = Transaction :: new_signed_with_payer (
1797
1800
& instructions,
1798
1801
Some ( & ctx. payer . pubkey ( ) ) ,
1799
1802
& [ & ctx. payer , & context_state_account] ,
1800
- ctx . last_blockhash ,
1803
+ last_blockhash,
1801
1804
) ;
1802
1805
ctx. banks_client . process_transaction ( tx) . await . unwrap ( ) ;
1803
1806
}
@@ -1847,11 +1850,12 @@ async fn confidential_transfer_empty_account_with_proof_context() {
1847
1850
instruction_type. encode_verify_proof( Some ( context_state_info) , & proof_data) ,
1848
1851
] ;
1849
1852
1853
+ let last_blockhash = ctx. get_new_latest_blockhash ( ) . await . unwrap ( ) ;
1850
1854
let tx = Transaction :: new_signed_with_payer (
1851
1855
& instructions,
1852
1856
Some ( & ctx. payer . pubkey ( ) ) ,
1853
1857
& [ & ctx. payer , & context_state_account] ,
1854
- ctx . last_blockhash ,
1858
+ last_blockhash,
1855
1859
) ;
1856
1860
ctx. banks_client . process_transaction ( tx) . await . unwrap ( ) ;
1857
1861
}
@@ -1959,11 +1963,12 @@ async fn confidential_transfer_withdraw_with_proof_context() {
1959
1963
instruction_type. encode_verify_proof( Some ( context_state_info) , & proof_data) ,
1960
1964
] ;
1961
1965
1966
+ let last_blockhash = ctx. get_new_latest_blockhash ( ) . await . unwrap ( ) ;
1962
1967
let tx = Transaction :: new_signed_with_payer (
1963
1968
& instructions,
1964
1969
Some ( & ctx. payer . pubkey ( ) ) ,
1965
1970
& [ & ctx. payer , & context_state_account] ,
1966
- ctx . last_blockhash ,
1971
+ last_blockhash,
1967
1972
) ;
1968
1973
ctx. banks_client . process_transaction ( tx) . await . unwrap ( ) ;
1969
1974
}
@@ -2016,11 +2021,12 @@ async fn confidential_transfer_withdraw_with_proof_context() {
2016
2021
instruction_type. encode_verify_proof( Some ( context_state_info) , & proof_data) ,
2017
2022
] ;
2018
2023
2024
+ let last_blockhash = ctx. get_new_latest_blockhash ( ) . await . unwrap ( ) ;
2019
2025
let tx = Transaction :: new_signed_with_payer (
2020
2026
& instructions,
2021
2027
Some ( & ctx. payer . pubkey ( ) ) ,
2022
2028
& [ & ctx. payer , & context_state_account] ,
2023
- ctx . last_blockhash ,
2029
+ last_blockhash,
2024
2030
) ;
2025
2031
ctx. banks_client . process_transaction ( tx) . await . unwrap ( ) ;
2026
2032
}
@@ -2148,11 +2154,12 @@ async fn confidential_transfer_transfer_with_proof_context() {
2148
2154
instruction_type. encode_verify_proof( Some ( context_state_info) , & proof_data) ,
2149
2155
] ;
2150
2156
2157
+ let last_blockhash = ctx. get_new_latest_blockhash ( ) . await . unwrap ( ) ;
2151
2158
let tx = Transaction :: new_signed_with_payer (
2152
2159
& instructions,
2153
2160
Some ( & ctx. payer . pubkey ( ) ) ,
2154
2161
& [ & ctx. payer , & context_state_account] ,
2155
- ctx . last_blockhash ,
2162
+ last_blockhash,
2156
2163
) ;
2157
2164
ctx. banks_client . process_transaction ( tx) . await . unwrap ( ) ;
2158
2165
}
@@ -2219,11 +2226,12 @@ async fn confidential_transfer_transfer_with_proof_context() {
2219
2226
instruction_type. encode_verify_proof( Some ( context_state_info) , & proof_data) ,
2220
2227
] ;
2221
2228
2229
+ let last_blockhash = ctx. get_new_latest_blockhash ( ) . await . unwrap ( ) ;
2222
2230
let tx = Transaction :: new_signed_with_payer (
2223
2231
& instructions,
2224
2232
Some ( & ctx. payer . pubkey ( ) ) ,
2225
2233
& [ & ctx. payer , & context_state_account] ,
2226
- ctx . last_blockhash ,
2234
+ last_blockhash,
2227
2235
) ;
2228
2236
ctx. banks_client . process_transaction ( tx) . await . unwrap ( ) ;
2229
2237
}
0 commit comments