Deprecate more Fee/Blockhash APIs (#21140)
This commit is contained in:
@ -423,10 +423,9 @@ async fn get_blockhash_post_warp() {
|
||||
|
||||
let new_blockhash = context
|
||||
.banks_client
|
||||
.get_new_blockhash(&context.last_blockhash)
|
||||
.get_new_latest_blockhash(&context.last_blockhash)
|
||||
.await
|
||||
.unwrap()
|
||||
.0;
|
||||
.unwrap();
|
||||
let mut tx = Transaction::new_with_payer(&[], Some(&context.payer.pubkey()));
|
||||
tx.sign(&[&context.payer], new_blockhash);
|
||||
context.banks_client.process_transaction(tx).await.unwrap();
|
||||
@ -435,10 +434,9 @@ async fn get_blockhash_post_warp() {
|
||||
|
||||
let new_blockhash = context
|
||||
.banks_client
|
||||
.get_new_blockhash(&context.last_blockhash)
|
||||
.get_new_latest_blockhash(&context.last_blockhash)
|
||||
.await
|
||||
.unwrap()
|
||||
.0;
|
||||
.unwrap();
|
||||
|
||||
let mut tx = Transaction::new_with_payer(&[], Some(&context.payer.pubkey()));
|
||||
tx.sign(&[&context.payer], new_blockhash);
|
||||
|
Reference in New Issue
Block a user