How to use the bitsharesjs/es.ChainValidation.is_valid_symbol_error function in bitsharesjs

To help you get started, we’ve selected a few bitsharesjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bitshares / bitshares-ui / web / app / components / Utility / AssetSelector.jsx View on Github external
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;
    }
github bitshares / bitshares-ui / app / components / Utility / AssetSelector.jsx View on Github external
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;
    }