revm_transaction::eip7702

Trait Eip7702Tx

Source
pub trait Eip7702Tx: Eip1559Tx {
    // Required methods
    fn destination(&self) -> Address;
    fn authorization_list_len(&self) -> usize;
    fn authorization_list_iter(
        &self,
    ) -> impl Iterator<Item = impl Authorization>;
}
Expand description

EIP-7702 transaction, TODO set Trait for AuthorizationList.

Required Methods§

Source

fn destination(&self) -> Address

Destination address of the call.

Source

fn authorization_list_len(&self) -> usize

Returns length of the authorization list.

§Note

Transaction is considered invalid if list is empty.

Source

fn authorization_list_iter(&self) -> impl Iterator<Item = impl Authorization>

List of authorizations, that contains the signature that authorizes this caller to place the code to signer account.

Set EOA account code for one transaction

EIP-Set EOA account code for one transaction

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.

Implementors§