Trait TryIntoTxEnv
pub trait TryIntoTxEnv<T, Spec = SpecId, BlockEnv = BlockEnv> {
type Err;
// Required method
fn try_into_tx_env(
self,
evm_env: &EvmEnv<Spec, BlockEnv>,
) -> Result<T, Self::Err>;
}Available on crate feature
rpc only.Expand description
Converts self into T.
Should create an executable transaction environment using TransactionRequest.
Required Associated Types§
type Err
type Err
An associated error that can occur during the conversion.
Required Methods§
fn try_into_tx_env(
self,
evm_env: &EvmEnv<Spec, BlockEnv>,
) -> Result<T, Self::Err>
fn try_into_tx_env( self, evm_env: &EvmEnv<Spec, BlockEnv>, ) -> Result<T, Self::Err>
Performs the conversion.