tools/setup/branded_token/register.js
async function() {
    const oThis = this
      , existingBrandedTokens = await oThis._loadBrandedTokenConfig()
    ;
    for (var uuid in existingBrandedTokens) {
      var brandedToken = existingBrandedTokens[uuid];
      if (oThis.btName.equalsIgnoreCase(brandedToken.Name)) {
        logger.error("* Branded token name already registered and present in BT config file");
        process.exit(1);
      }
      if (oThis.btSymbol.equalsIgnoreCase(brandedToken.Symbol)) {
        logger.error("* Branded token symbol already registered and present in BT config file");
        process.exit(1);
      }
    }
    return true;
  }
async function() {
    const oThis = this
      , existingBrandedTokens = await oThis._loadBrandedTokenConfig()
    ;
    for (var uuid in existingBrandedTokens) {
      var brandedToken = existingBrandedTokens[uuid];
      if (oThis.btName.equalsIgnoreCase(brandedToken.Name)) {
        logger.error("* Branded token name already registered and present in BT config file");
        process.exit(1);
      }
      if (oThis.btSymbol.equalsIgnoreCase(brandedToken.Symbol)) {
        logger.error("* Branded token symbol already registered and present in BT config file");
        process.exit(1);
      }
    }
    return true;
  }
async function ( ) { const oThis = this , existingBrandedTokens = await oThis . _loadBrandedTokenConfig ( ) ; for ( var uuid in existingBrandedTokens ) { var brandedToken = existingBrandedTokens [ uuid ] ; if ( oThis . btName . equalsIgnoreCase ( brandedToken . Name ) ) { logger . error ( "* Branded token name already registered and present in BT config file" ) ; process . exit ( 1 ) ; } if ( oThis . btSymbol . equalsIgnoreCase ( brandedToken . Symbol ) ) { logger . error ( "* Branded token symbol already registered and present in BT config file" ) ; process . exit ( 1 ) ; } } return true ; }
Check for duplicate branded token

@return {boolean}
@private
Check for duplicate branded token