mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
Exclude blacklist assets from bep2 update sscript
This commit is contained in:
parent
7b00d6cfdb
commit
a8a7ab518a
|
@ -3,12 +3,13 @@ const bluebird = require("bluebird")
|
|||
const fs = require("fs")
|
||||
const path = require("path")
|
||||
const chalk = require('chalk')
|
||||
const blacklist = require('../blockchains/binance/blacklist.json')
|
||||
|
||||
;(async () => {
|
||||
const { assetInfoList } = await axios.get(`https://explorer.binance.org/api/v1/assets?page=1&rows=1000`).then(r => r.data)
|
||||
|
||||
await bluebird.each(assetInfoList, async ({ asset, assetImg }) => {
|
||||
if (assetImg) {
|
||||
if (assetImg && blacklist.indexOf(asset) == -1) {
|
||||
const binanceDir = path.join(__dirname, `../blockchains/binance`)
|
||||
const imagePath = `${binanceDir}/assets/${asset}/logo.png`
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user