foundry_evm::utils

Function get_function

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.