Skip to main content

TransactionEnvMut

Trait TransactionEnvMut 

Source
pub trait TransactionEnvMut: Transaction + Clone {
    // Required methods
    fn set_gas_limit(&mut self, gas_limit: u64);
    fn set_access_list(&mut self, access_list: AccessList);
}
Expand description

Transaction environment that can be adjusted in place, e.g. by RPC simulations that re-execute a prepared transaction with a different gas limit or access list.

Implementations update the transaction fields only: values derived when the environment was created (sender, recovered authorities, or other cached metadata) are preserved.

Required Methods§

Source

fn set_gas_limit(&mut self, gas_limit: u64)

Sets the gas limit.

Source

fn set_access_list(&mut self, access_list: AccessList)

Sets the access list.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TransactionEnvMut for TxEnvelope

Source§

fn set_gas_limit(&mut self, gas_limit: u64)

Source§

fn set_access_list(&mut self, access_list: AccessList)

Implementors§