Function with_evm

Source
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 FoundryEvm<'a, &'b mut dyn InspectorExt>) -> Result<O, EVMError<DatabaseError>>,
Expand description

Constructs [FoundryEvm] and runs a given closure with it.