mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
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:
parent
569a9d7d68
commit
2c716b8aa3
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user