Skip to content

Commit

Permalink
Remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ercecan committed Oct 2, 2024
1 parent 881333d commit 2f75fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/evm/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl EstimatedTxExpenses {
/// Return total estimated gas used including evm gas and L1 fee.
pub(crate) fn gas_with_l1_overhead(&self) -> U256 {
// Actually not an L1 fee but l1_fee / base_fee.
let l1_fee_overhead = U256::from(1).max(self.l1_fee.div_ceil(self.base_fee)); // assume 1 gwei priority fee
let l1_fee_overhead = U256::from(1).max(self.l1_fee.div_ceil(self.base_fee));
l1_fee_overhead + U256::from(self.gas_used)
}
}
Expand Down

0 comments on commit 2f75fb1

Please sign in to comment.