From 87750b5f9dfb68fa2aae9e93f4975fd20eb4cd40 Mon Sep 17 00:00:00 2001 From: Adam R <13562139+catenocrypt@users.noreply.github.com> Date: Thu, 25 Mar 2021 14:28:56 +0100 Subject: [PATCH] Enforce that info.id field matches exactly folder name (i.e. in checksum format) (#6077) Co-authored-by: Catenocrypt --- script/generic/asset-infos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/generic/asset-infos.ts b/script/generic/asset-infos.ts index 7d4fcce94..44ddc51bd 100644 --- a/script/generic/asset-infos.ts +++ b/script/generic/asset-infos.ts @@ -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; }