pub trait ArbTransactionEnv: TransactionEnv {
// Required methods
fn set_gas_price(&mut self, gas_price: u128);
fn set_gas_priority_fee(&mut self, fee: Option<u128>);
}Expand description
Extension trait for transaction environments that support gas price mutation.
Arbitrum needs to cap the gas price to the base fee when dropping tips,
which requires mutating fields not exposed by the standard TransactionEnv trait.
Required Methods§
Sourcefn set_gas_price(&mut self, gas_price: u128)
fn set_gas_price(&mut self, gas_price: u128)
Set the effective gas price (max_fee_per_gas for EIP-1559, gas_price for legacy).
Sourcefn set_gas_priority_fee(&mut self, fee: Option<u128>)
fn set_gas_priority_fee(&mut self, fee: Option<u128>)
Set the max priority fee per gas (tip cap).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.