mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
Type should be all-caps (#6629)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
parent
98dcf3fae5
commit
fb85a400be
|
@ -45,7 +45,7 @@ function isAssetInfoValid(info: unknown, path: string, address: string, chain: s
|
|||
if (info['type'] !== info['type'].toUpperCase()) {
|
||||
// type is correct value, but casing is wrong, fix
|
||||
if (checkOnly) {
|
||||
return ["", `Wrong casing for type '${info['type']}' '${chain}' ${path}`, fixedInfo];
|
||||
return [`Type should be ALLCAPS '${info['type'].toUpperCase()}' instead of '${info['type']}' '${chain}' ${path}`, "", fixedInfo];
|
||||
}
|
||||
// fix
|
||||
if (!fixedInfo) { fixedInfo = info; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user