cast::fuzz::strategies

Function fuzz_contract_with_calldata

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.