Skip to main content

decode_result

Function decode_result 

Source
pub fn decode_result<C: SolCall>(result: &Result) -> MulticallResult<C::Return>
Expand description

Decode a single multicall IMulticall3::Result into the call’s typed return.

§Errors

Returns an error if result.success is false (the call reverted), or if result.returnData cannot be ABI-decoded into C::Return.