Function getFunctionParts

  • Splits a function identifier into its constituent parts: module address, module name, and function name. This function helps in validating and extracting details from a function identifier string.

    Parameters

    • functionArg: `${string}::${string}::${string}`

      The function identifier string in the format "moduleAddress::moduleName::functionName".

    Returns {
        functionName: string;
        moduleAddress: string;
        moduleName: string;
    }

    An object containing the module address, module name, and function name.

    • functionName: string
    • moduleAddress: string
    • moduleName: string

    Error if the function identifier does not contain exactly three parts.