forge::fuzz::strategies

Function fuzz_calldata_from_state

Source
pub fn fuzz_calldata_from_state(
    func: Function,
    state: &EvmFuzzState,
) -> impl Strategy<Value = Bytes>
Expand description

Given a function and some state, it returns a strategy which generated valid calldata for the given function’s input types, based on state taken from the EVM.