getModuleIdPart static method
Implementation
static (AptosAddress, String) getModuleIdPart(String input) {
final parts = input.split("::");
try {
if (parts.length == 2) {
final moduleAddress = AptosAddress(parts[0]);
final moduleName = validateIdentifier(parts[1]);
return (moduleAddress, moduleName);
}
} catch (_) {}
throw DartAptosPluginException(
"Invalid module ID format. The input must be in the format '0x1::module_name'");
}