encodeConstructor method

Uint8List encodeConstructor(
  1. List<Object> args
)

Implementation

Uint8List encodeConstructor(List<Object> args) {
  try {
    final c = entries.firstWhere(
      (entry) => entry.type == AbiEntryType.constructor,
    ) as ConstructorEntry;
    return c.encode(args);
  } on StateError {
    throw Exception('Constructor does not exist');
  }
}