ContractEncoder.decode() method
Decode encoded call data for a given function
Signature:
decode(fn: keyof TContract["functions"], encodedArgs: string): utils.Result;
Parameters
Parameter | Type | Description |
---|---|---|
fn | keyof TContract["functions"] | the function to decode |
encodedArgs | string | the encoded arguments |
Returns:
utils.Result