From 7513e27564fa7ebaebed47cb4ebfd2df5aa32a4f Mon Sep 17 00:00:00 2001 From: Adam R <13562139+catenocrypt@users.noreply.github.com> Date: Tue, 5 Oct 2021 10:38:53 +0200 Subject: [PATCH] [Internal] Fix for Binance token auto update, exclude tokens with no decimals (#14104) --- script/blockchain/binance.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/blockchain/binance.ts b/script/blockchain/binance.ts index 787266e28..c02000d97 100644 --- a/script/blockchain/binance.ts +++ b/script/blockchain/binance.ts @@ -76,7 +76,8 @@ export function findImagesToFetch(assetInfoList: BinanceTokenInfo[]): BinanceTok console.log(`Checking for asset images to be fetched`); assetInfoList.forEach((tokenInfo) => { process.stdout.write(`.${tokenInfo.asset} `); - if (tokenInfo.assetImg) { + // pick assets only if img and decimals is present + if (tokenInfo.assetImg && tokenInfo.decimals) { const imagePath = getChainAssetLogoPath(binanceChain, tokenInfo.asset); if (!fs.existsSync(imagePath)) { console.log(chalk.red(`Missing image: ${tokenInfo.asset}`));