Trait FromRecoveredTx

pub trait FromRecoveredTx<Tx> {
    // Required method
    fn from_recovered_tx(tx: &Tx, sender: Address) -> Self;
}
Expand description

Helper user-facing trait to allow implementing IntoTxEnv on instances of [Recovered].

Required Methods§

fn from_recovered_tx(tx: &Tx, sender: Address) -> Self

Builds a TxEnv from a transaction and a sender address.

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.

Implementations on Foreign Types§

§

impl FromRecoveredTx<SeismicTransactionSigned> for SeismicTransaction<TxEnv>

§

fn from_recovered_tx( tx: &SeismicTransactionSigned, sender: Address, ) -> SeismicTransaction<TxEnv>

§

impl FromRecoveredTx<SeismicTxEnvelope> for SeismicTransaction<TxEnv>

Necessary to run a test case that uses the SeismicAlloyReceiptBuilder for the SeismicEvm Necessary to include in this crate due to the orphan rule.

§

fn from_recovered_tx( tx: &SeismicTxEnvelope, sender: Address, ) -> SeismicTransaction<TxEnv>

Implementors§

§

impl FromRecoveredTx<TxEip1559> for TxEnv

§

impl FromRecoveredTx<TxEip2930> for TxEnv

§

impl FromRecoveredTx<TxEip4844> for TxEnv

§

impl FromRecoveredTx<TxEip7702> for TxEnv

§

impl FromRecoveredTx<TxLegacy> for TxEnv

§

impl<Eip4844> FromRecoveredTx<EthereumTxEnvelope<Eip4844>> for TxEnv
where Eip4844: AsRef<TxEip4844>,

§

impl<TxEnv, T> FromRecoveredTx<&T> for TxEnv
where TxEnv: FromRecoveredTx<T>,