Skip to main content

TryIntoTxEnv

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

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>

Performs the conversion.

Implementors§

§

impl<Spec, Block> TryIntoTxEnv<TxEnv, Spec, Block> for TransactionRequest
where Block: BlockEnvironment,