foundry_evm::executors::invariant

Function call_after_invariant_function

Source
pub(crate) fn call_after_invariant_function(
    executor: &Executor,
    to: Address,
) -> Result<(RawCallResult, bool), EvmError>
Expand description

Calls the afterInvariant() function on a contract. Returns call result and if call succeeded. The state after the call is not persisted.