fn with_evm<E, F, O>(
executor: &mut E,
ccx: &mut CheatsCtxt<'_, '_, '_, '_>,
f: F,
) -> Result<O, EVMError<DatabaseError>>where
E: CheatcodesExecutor + ?Sized,
F: for<'a, 'b> FnOnce(&mut Evm<'_, &'b mut dyn InspectorExt, &'a mut dyn DatabaseExt>) -> Result<O, EVMError<DatabaseError>>,
Expand description
Constructs [revm::Evm] and runs a given closure with it.