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§
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
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.