File tree Expand file tree Collapse file tree
aggregation_mode/proof_aggregator/src/backend Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments