read method

CallBuilder read(
  1. String functionName, [
  2. List args = const []
])

Implementation

CallBuilder read(String functionName, [List<dynamic> args = const []]) {
  final func = abi.function(functionName);
  if (func == null) {
    throw ArgumentError('Function "$functionName" not found in ABI');
  }
  return CallBuilder(
    contract: this,
    function_: func,
    args: args,
  );
}