forge::fuzz::strategies

Function fuzz_contract_with_calldata

Source
pub fn fuzz_contract_with_calldata(
    fuzz_state: &EvmFuzzState,
    fuzz_fixtures: &FuzzFixtures,
    target: Address,
    func: Function,
) -> impl Strategy<Value = CallDetails>
Expand description

Given a function, it returns a proptest strategy which generates valid abi-encoded calldata for that function’s input types.