Skip to main content

expect_call

Function expect_call 

Source
fn expect_call(
    state: &mut CheatcodesCore,
    target: &Address,
    calldata: &Bytes,
    scheme: Option<ExpectedCallScheme>,
    expected: ExpectedCallData,
) -> Result
Expand description

Registers an expectation keyed by target, calldata and call scheme. Counted expectations require an exact count and cannot be registered twice or mixed with non-counted expectations. Repeated non-counted expectations increase the minimum call count.