Skip to content

Commit c4914e2

Browse files
also set the base fee to the tx request (gas_price field)
1 parent ea3779f commit c4914e2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • aggregation_mode/proof_aggregator/src/backend

aggregation_mode/proof_aggregator/src/backend/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,9 @@ impl ProofAggregator {
560560
let new_priority_fee = priority_fee_wei;
561561

562562
Ok(tx_req
563+
// In TransactionRequest docs the gas_price field is defined as
564+
// "The max base fee per gas the sender is willing to pay."
565+
.with_gas_price(new_base_fee as u128)
563566
.with_max_fee_per_gas(new_max_fee as u128)
564567
.with_max_priority_fee_per_gas(new_priority_fee as u128))
565568
}

0 commit comments

Comments
 (0)