forge::utils

Function get_function

Source
pub fn get_function<'a>(
    contract_name: &str,
    selector: FixedBytes<4>,
    abi: &'a JsonAbi,
) -> Result<&'a Function, Report>
Expand description

Given an ABI and selector, it tries to find the respective function.