decodeList static method

List<Object> decodeList(
  1. List<AbiEntryParam> params,
  2. Uint8List encoded
)

Implementation

static List<Object> decodeList(
  List<AbiEntryParam> params,
  Uint8List encoded,
) {
  final result = <Object>[];
  var offset = 0;
  for (final param in params) {
    final decoded = decodeType(param.type, encoded, offset);
    result.add(decoded);
    offset += param.type.fixedSize;
  }
  return result;
}