Fix crossed PRs; remove deprecated fee_calculator usage (#19228)

This commit is contained in:
Tyera Eulberg 2021-08-13 11:14:00 -06:00 committed by GitHub
parent 04c0c608a3
commit 01b00bc593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -2903,8 +2903,9 @@ mod tests {
lamports_to_transfer,
bank2.last_blockhash(),
);
let (_blockhash, fee_calculator) = bank2.last_blockhash_with_fee_calculator();
let fee = fee_calculator.calculate_fee(tx.message());
let fee = bank2
.get_fee_for_message(&bank2.last_blockhash(), tx.message())
.unwrap();
let tx = system_transaction::transfer(
&key1,
&key2.pubkey(),