Function encode_args

Source
pub fn encode_args(
    func: &Function,
    args: &[impl AsRef<str>],
) -> Result<Vec<u8>, AbiError>
Expand description

Given a function and a vector of string arguments, it proceeds to convert the args to ethabi Tokens and then ABI encode them.

This function was taken from foundry.