Fix cmc script.ts (#2736)

This commit is contained in:
Nick Kozlov 2020-07-14 14:40:42 +03:00 committed by GitHub
parent ce34e54b4f
commit 3f1529273d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ import {
readFileSync,
getChainAssetLogoPath,
isPathExistsSync,
getChainName,
makeDirSync,
getChainAssetPath,
ethSidechains,
@ -16,6 +17,7 @@ import {
getChainWhitelist,
} from "../../src/test/helpers";
import { TickerType, mapTiker, PlatformType } from "../../src/test/models";
import { CoinType } from "@trustwallet/types";
// Steps required to run this:
// 1. (Optional) CMC API key already setup, use yours if needed. Install script deps "npm i" if hasn't been run before.
@ -54,6 +56,7 @@ const custom: mapTiker[] = [
]
const allContracts: mapTiker[] = [] // Temp storage for mapped assets
let bip44Constants = {}
let bnbOwnerToSymbol = {} // e.g: bnb1tawge8u97slduhhtumm03l4xl4c46dwv5m9yzk: WISH-2D5
let bnbOriginalSymbolToSymbol = {} // e.g: WISH: WISH-2D5
@ -93,6 +96,7 @@ async function processCoin(coin) {
id
})
}
// await getImageIfMissing(getChainName(CoinType.ethereum), checksum, id)
} catch (error) {
console.log(`Etheruem platform error`, error)
break