mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
Enforce that info.id field matches exactly folder name (i.e. in checksum format) (#6077)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
parent
02decb1b9e
commit
87750b5f9d
|
@ -59,7 +59,7 @@ function isAssetInfoValid(info: unknown, path: string, address: string, chain: s
|
|||
return [`Incorrect value for id '${info['id']}' '${chain}' ${path}`, "", fixedInfo];
|
||||
}
|
||||
// is is correct value, but casing is wrong
|
||||
return ["", `Wrong casing for id '${info['id']}' '${chain}' ${path}`, fixedInfo];
|
||||
return [`Wrong casing for id '${info['id']}' '${chain}' ${path}`, "", fixedInfo];
|
||||
}
|
||||
// fix
|
||||
if (!fixedInfo) { fixedInfo = info; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user