Enforce that info file must be present for all tokens (with some exceptions). (#8439)

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
Adam R 2021-05-20 12:10:48 +02:00 committed by GitHub
parent 569a9d7d68
commit 2c716b8aa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,8 +88,14 @@ export class FoldersFiles implements ActionInterface {
const infoFullPath = getChainAssetInfoPath(chain, address);
if (!isPathExistsSync(infoFullPath)) {
const msg = `Missing info file for asset '${chain}/${address}' -- ${infoFullPath}`;
// enforce that info must be present (with some exceptions)
if (chain === 'classic' || chain === 'eos' || chain === 'poa' || chain === 'terra' || chain === 'theta' || chain === 'thundertoken' || chain === 'tomochain' || chain === 'tron' || chain === 'waves' || chain === 'xdai') {
//console.log(msg);
warnings.push(msg);
} else {
console.log(msg);
errors.push(msg);
}
}
});
}