fix: set deposit gasprice correctly (#11603)

This commit is contained in:
Matthias Seitz
2024-10-09 13:00:17 +02:00
committed by GitHub
parent 570c1df7ec
commit 8ba7bc0799

View File

@ -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,