[CI] Add check that TRX token_id is not empty

This commit is contained in:
Viktor Radchenko 2020-07-14 11:28:08 -07:00
parent 1241d22ac3
commit 33b694894d

View File

@ -133,12 +133,14 @@ async function processCoin(coin) {
} }
const tokenAddr = platform.token_address.trim() const tokenAddr = platform.token_address.trim()
log(`tron: ${tokenAddr}`) log(`tron: ${tokenAddr}`)
addToContractsList({ if (tokenAddr.length > 0) {
coin: 195, addToContractsList({
type: typeToken, coin: 195,
token_id: tokenAddr, type: typeToken,
id token_id: tokenAddr,
}) id
})
}
break break
// case PlatformType.VeChain: // case PlatformType.VeChain:
// if (symbol === "VET") { // if (symbol === "VET") {