Allow logo to be missing for abandoned tokens (#13715)

This commit is contained in:
Adam R 2021-09-18 09:55:19 +02:00 committed by GitHub
parent 97f9c6622c
commit ebddc54efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,8 +97,9 @@ export class FoldersFiles implements ActionInterface {
errors.push(msg);
}
if (!logoExists && infoExists) {
// logo must be present, with some exceptions
const info: unknown = readJsonFile(infoFullPath);
if (!info['status'] || info['status'] !== 'spam') {
if (!info['status'] || info['status'] !== 'spam' || info['status'] !== 'abandoned') {
const msg = `Missing logo file for non-spam asset '${chain}/${address}' -- ${logoFullPath}`;
console.log(msg);
errors.push(msg);