Skip to content

Commit

Permalink
Update crates/l2/utils/eth_client/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Borello <[email protected]>
  • Loading branch information
LeanSerra and fborello-lambda authored Dec 2, 2024
1 parent 1e58e80 commit 96a201f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/l2/utils/eth_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ impl EthClient {

/// Increase max fee per gas by percentage% (set it to (100+percentage)% of the original)
pub fn bump_eip1559(&self, tx: &mut EIP1559Transaction, percentage: u64) {
// TODO: handle as conversions
tx.max_fee_per_gas = (tx.max_fee_per_gas * (100 + percentage)) / 100;
tx.max_priority_fee_per_gas += (tx.max_priority_fee_per_gas * (100 + percentage)) / 100;
}
Expand Down

0 comments on commit 96a201f

Please sign in to comment.