Skip to main content

CommonCreateInput

Trait CommonCreateInput 

pub trait CommonCreateInput {
    // Required methods
    fn caller(&self) -> Address;
    fn gas_limit(&self) -> u64;
    fn value(&self) -> Uint<256, 4>;
    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(
        &self,
        cheatcodes: &mut Cheatcodes,
        ecx: &mut Context<BlockEnv, TxEnv, CfgEnv, &mut dyn DatabaseExt<Error = DatabaseError>>,
    ) -> Address;
}
Expand description

Common behaviour of legacy and EOF create inputs.

Required Methods§

fn caller(&self) -> Address

fn gas_limit(&self) -> u64

fn value(&self) -> Uint<256, 4>

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( &self, cheatcodes: &mut Cheatcodes, ecx: &mut Context<BlockEnv, TxEnv, CfgEnv, &mut dyn DatabaseExt<Error = DatabaseError>>, ) -> Address

Implementors§