pub trait InspectorExt: for<'a> Inspector<&'a mut dyn DatabaseExt> {
// Provided methods
fn should_use_create2_factory(
&mut self,
_context: &mut EvmContext<&mut dyn DatabaseExt>,
_inputs: &mut CreateInputs,
) -> bool { ... }
fn console_log(&mut self, _input: String) { ... }
fn is_odyssey(&self) -> bool { ... }
fn create2_deployer(&self) -> Address { ... }
}
Expand description
An extension trait that allows us to add additional hooks to Inspector for later use in handlers.
Provided Methods§
Sourcefn should_use_create2_factory(
&mut self,
_context: &mut EvmContext<&mut dyn DatabaseExt>,
_inputs: &mut CreateInputs,
) -> bool
fn should_use_create2_factory( &mut self, _context: &mut EvmContext<&mut dyn DatabaseExt>, _inputs: &mut CreateInputs, ) -> bool
Determines whether the DEFAULT_CREATE2_DEPLOYER
should be used for a CREATE2 frame.
If this function returns true, we’ll replace CREATE2 frame with a CALL frame to CREATE2 factory.
Sourcefn console_log(&mut self, _input: String)
fn console_log(&mut self, _input: String)
Simulates console.log
invocation.
Sourcefn is_odyssey(&self) -> bool
fn is_odyssey(&self) -> bool
Returns true
if the current network is Odyssey.
Sourcefn create2_deployer(&self) -> Address
fn create2_deployer(&self) -> Address
Returns the CREATE2 deployer address.