decodeCall method
Uses the known types of the function parameters to parse them from the binary call data. The reverse of encodeCall.
Implementation
List<dynamic> decodeCall(Uint8List data) {
final tuple = TupleType(parameters.map((p) => p.type).toList());
final parsedData = tuple.decode(data.buffer, 0);
return parsedData.data;
}