Skip to main content

fuzz_calldata_from_state

Function fuzz_calldata_from_state 

Source
pub fn fuzz_calldata_from_state<S: FuzzStateReader>(
    func: Function,
    state: &S,
) -> impl Strategy<Value = Bytes> + use<S>
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.