foundry_evm_fuzz::strategies::calldata

Function fuzz_calldata

Source
pub fn fuzz_calldata(
    func: Function,
    fuzz_fixtures: &FuzzFixtures,
) -> impl Strategy<Value = Bytes>
Expand description

Given a function, it returns a strategy which generates valid calldata for that function’s input types, following declared test fixtures.