From 33b694894db65efefa468abba5b97b2b36684ddf Mon Sep 17 00:00:00 2001 From: Viktor Radchenko <1641795+vikmeup@users.noreply.github.com> Date: Tue, 14 Jul 2020 11:28:08 -0700 Subject: [PATCH] [CI] Add check that TRX token_id is not empty --- pricing/coinmarketcap/script.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pricing/coinmarketcap/script.ts b/pricing/coinmarketcap/script.ts index 6b2ff9045..1a6260c89 100644 --- a/pricing/coinmarketcap/script.ts +++ b/pricing/coinmarketcap/script.ts @@ -133,12 +133,14 @@ async function processCoin(coin) { } const tokenAddr = platform.token_address.trim() log(`tron: ${tokenAddr}`) - addToContractsList({ - coin: 195, - type: typeToken, - token_id: tokenAddr, - id - }) + if (tokenAddr.length > 0) { + addToContractsList({ + coin: 195, + type: typeToken, + token_id: tokenAddr, + id + }) + } break // case PlatformType.VeChain: // if (symbol === "VET") {