funcName static method

String funcName(
  1. String name,
  2. AbiBaseFragment fragment
)

Gets the encoded function name for the given name and fragment.

Implementation

static String funcName(String name, AbiBaseFragment fragment) {
  return "$name(${fragment.inputs.map((e) {
    if (e.argName == "function") {
      return "bytes24";
    }
    return e.argName;
  }).join(",")})";
}