Function alloy_sol_types::abi::decode_params

source ·
pub fn decode_params<'de, T: TokenSeq<'de>>(
    data: &'de [u8],
    validate: bool
) -> Result<T>
Expand description

ABI-decodes top-level function args.

Decodes as function parameters if T is a tuple. Otherwise, decodes it as a single-element tuple.

You are probably looking for SolValue::abi_decode_params if you are not intending to use raw tokens.

See the abi module for more information.