encodeConstructor method
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');
}
}