Deprecate FeeCalculator returning APIs (#19120)
This commit is contained in:
@@ -1523,7 +1523,7 @@ pub fn request_and_confirm_airdrop(
|
||||
to_pubkey: &Pubkey,
|
||||
lamports: u64,
|
||||
) -> ClientResult<Signature> {
|
||||
let (recent_blockhash, _fee_calculator) = rpc_client.get_recent_blockhash()?;
|
||||
let recent_blockhash = rpc_client.get_latest_blockhash()?;
|
||||
let signature =
|
||||
rpc_client.request_airdrop_with_blockhash(to_pubkey, lamports, &recent_blockhash)?;
|
||||
rpc_client.confirm_transaction_with_spinner(
|
||||
|
Reference in New Issue
Block a user