foundry_common::abi

Function encode_function_args_packed

Source
pub fn encode_function_args_packed<I, S>(
    func: &Function,
    args: I,
) -> Result<Vec<u8>>
where I: IntoIterator<Item = S>, S: AsRef<str>,
Expand description

Given a function and a vector of string arguments, it proceeds to convert the args to alloy [DynSolValue]s and encode them using the packed encoding.