mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: set deposit gasprice correctly (#11603)
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user