decodeFunctionResultFromFragment method

List decodeFunctionResultFromFragment(
  1. Fragment<_FragmentImpl> function,
  2. String data
)

Returns the decoded values from the result of a call for function (see Specifying Fragments) for the given data.


// Decoding result data (e.g. from an eth_call)
resultData = '0x0000000000000000000000000000000000000000000000000de0b6b3a7640000';
iface.decodeFunctionResult(iface.fragments.first, resultData);
// [1000000000000000000]

Implementation

List<dynamic> decodeFunctionResultFromFragment(
        Fragment function, String data) =>
    impl.decodeFunctionResult(function.impl, data);