Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getNameType(value) {
if(!value) return null;
// if(value[0] === "#" && utils.is_object_id("1.2." + value.substring(1))) return "id";
if(!ChainValidation.is_valid_symbol_error(value, true)) return "symbol";
return null;
}
getNameType(value) {
if (!value) return null;
// if(value[0] === "#" && utils.is_object_id("1.2." + value.substring(1))) return "id";
if (!ChainValidation.is_valid_symbol_error(value, true))
return "symbol";
return null;
}