Skip to main content

CommonCreateInput

Trait CommonCreateInput 

Source
pub(crate) trait CommonCreateInput {
    // Required methods
    fn caller(&self) -> Address;
    fn gas_limit(&self) -> u64;
    fn value(&self) -> U256;
    fn init_code(&self) -> Bytes;
    fn scheme(&self) -> Option<CreateScheme>;
    fn set_caller(&mut self, caller: Address);
    fn log_debug(&self, cheatcode: &mut Cheatcodes, scheme: &CreateScheme);
    fn allow_cheatcodes<CTX: ContextTr<Journal: JournalExt, Db: DatabaseExt>>(
        &self,
        cheatcodes: &mut Cheatcodes,
        ecx: &mut CTX,
    ) -> Address;
}
Expand description

Common behaviour of legacy and EOF create inputs.

Required Methods§

Source

fn caller(&self) -> Address

Source

fn gas_limit(&self) -> u64

Source

fn value(&self) -> U256

Source

fn init_code(&self) -> Bytes

Source

fn scheme(&self) -> Option<CreateScheme>

Source

fn set_caller(&mut self, caller: Address)

Source

fn log_debug(&self, cheatcode: &mut Cheatcodes, scheme: &CreateScheme)

Source

fn allow_cheatcodes<CTX: ContextTr<Journal: JournalExt, Db: DatabaseExt>>( &self, cheatcodes: &mut Cheatcodes, ecx: &mut CTX, ) -> 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§

Source§

impl CommonCreateInput for &mut CreateInputs

Source§

fn caller(&self) -> Address

Source§

fn gas_limit(&self) -> u64

Source§

fn value(&self) -> U256

Source§

fn init_code(&self) -> Bytes

Source§

fn scheme(&self) -> Option<CreateScheme>

Source§

fn set_caller(&mut self, caller: Address)

Source§

fn log_debug(&self, cheatcode: &mut Cheatcodes, scheme: &CreateScheme)

Source§

fn allow_cheatcodes<CTX: ContextTr<Journal: JournalExt, Db: DatabaseExt>>( &self, cheatcodes: &mut Cheatcodes, ecx: &mut CTX, ) -> Address

Implementors§