encodeCall method

Uint8List encodeCall(
  1. String functionName,
  2. List args
)

Implementation

Uint8List encodeCall(String functionName, List<dynamic> args) {
  final func = abi.function(functionName);
  if (func == null) {
    throw ArgumentError('Function "$functionName" not found in ABI');
  }
  return func.encodeCall(args);
}