decodeAbi function

List decodeAbi(
  1. List<String> types,
  2. Uint8List value
)

Implementation

List<dynamic> decodeAbi(List<String> types, Uint8List value) {
  List<AbiType> abiTypes = [];
  for (String type in types) {
    var abiType = parseAbiType(type);
    abiTypes.add(abiType);
  }
  final parsedData = TupleType(abiTypes).decode(value.buffer, 0);
  return parsedData.data;
}