mirror of
				https://github.com/Instadapp/trustwallet-assets.git
				synced 2024-07-29 22:37:31 +00:00 
			
		
		
		
	Allow logo to be missing for abandoned tokens (#13715)
This commit is contained in:
		
							parent
							
								
									97f9c6622c
								
							
						
					
					
						commit
						ebddc54efa
					
				|  | @ -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); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Adam R
						Adam R