decodeConstructor method

List<Object> decodeConstructor(
  1. Uint8List encoded
)

Implementation

List<Object> decodeConstructor(Uint8List encoded) {
  try {
    final c = entries.firstWhere((e) => e.type == AbiEntryType.constructor)
        as ConstructorEntry;
    return AbiEntry.decodeList(c.inputs, encoded);
  } on StateError {
    throw Exception('Constructor does not exist');
  }
}