Skip to content

Commit

Permalink
fix: set deposit gasprice correctly (paradigmxyz#11603)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored and ebo committed Oct 14, 2024
1 parent 1092b51 commit fa7fc4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/optimism/rpc/src/eth/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ impl TransactionCompat for OpTxBuilder {
fn fill(tx: TransactionSignedEcRecovered, tx_info: TransactionInfo) -> Self::Transaction {
let signed_tx = tx.clone().into_signed();

let inner = EthTxBuilder::fill(tx, tx_info).inner;
let mut inner = EthTxBuilder::fill(tx, tx_info).inner;

if signed_tx.is_deposit() {
inner.gas_price = Some(signed_tx.max_fee_per_gas())
}

Transaction {
inner,
Expand Down

0 comments on commit fa7fc4f

Please sign in to comment.