diff --git a/crates/optimism/rpc/src/eth/transaction.rs b/crates/optimism/rpc/src/eth/transaction.rs index 3ccda419cad8..a4b4c064970d 100644 --- a/crates/optimism/rpc/src/eth/transaction.rs +++ b/crates/optimism/rpc/src/eth/transaction.rs @@ -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,