diff --git a/crates/network/src/ethereum/mod.rs b/crates/network/src/ethereum/mod.rs index 3c6fbe56ee6..52d11ccef94 100644 --- a/crates/network/src/ethereum/mod.rs +++ b/crates/network/src/ethereum/mod.rs @@ -103,6 +103,14 @@ impl TransactionBuilder for alloy_rpc_types::TransactionRequest { self.max_priority_fee_per_gas = Some(max_priority_fee_per_gas); } + fn max_fee_per_blob_gas(&self) -> Option { + self.max_fee_per_blob_gas + } + + fn set_max_fee_per_blob_gas(&mut self, max_fee_per_blob_gas: U256) { + self.max_fee_per_blob_gas = Some(max_fee_per_blob_gas) + } + fn gas_limit(&self) -> Option { self.gas } diff --git a/crates/network/src/transaction/builder.rs b/crates/network/src/transaction/builder.rs index c77f3444367..7db88a7ff0b 100644 --- a/crates/network/src/transaction/builder.rs +++ b/crates/network/src/transaction/builder.rs @@ -164,6 +164,18 @@ pub trait TransactionBuilder: Default + Sized + Send + Sync + 'stati self } + /// Get the max fee per blob gas for the transaction. + fn max_fee_per_blob_gas(&self) -> Option; + + /// Set the max fee per blob gas for the transaction. + fn set_max_fee_per_blob_gas(&mut self, max_fee_per_blob_gas: U256); + + /// Builder-pattern method for setting max fee per blob gas . + fn with_max_fee_per_blob_gas(mut self, max_fee_per_blob_gas: U256) -> Self { + self.set_max_fee_per_blob_gas(max_fee_per_blob_gas); + self + } + /// Get the gas limit for the transaction. fn gas_limit(&self) -> Option;