Skip to content

Commit bb309a4

Browse files
fix clippy lints
1 parent c4914e2 commit bb309a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • aggregation_mode/proof_aggregator/src/backend

aggregation_mode/proof_aggregator/src/backend/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,15 +556,15 @@ impl ProofAggregator {
556556
.map_err(|e| AggregatedProofSubmissionError::GasPriceError(e.to_string()))?;
557557

558558
let new_base_fee = current_gas_price as f64 * (1.0 + base_bump_percentage as f64 / 100.0);
559-
let new_max_fee = new_base_fee as f64 * (1.0 + max_fee_bump_percentage as f64 / 100.0);
559+
let new_max_fee = new_base_fee * (1.0 + max_fee_bump_percentage as f64 / 100.0);
560560
let new_priority_fee = priority_fee_wei;
561561

562562
Ok(tx_req
563563
// In TransactionRequest docs the gas_price field is defined as
564564
// "The max base fee per gas the sender is willing to pay."
565565
.with_gas_price(new_base_fee as u128)
566566
.with_max_fee_per_gas(new_max_fee as u128)
567-
.with_max_priority_fee_per_gas(new_priority_fee as u128))
567+
.with_max_priority_fee_per_gas(new_priority_fee))
568568
}
569569

570570
async fn wait_until_can_submit_aggregated_proof(

0 commit comments

Comments
 (0)