From 8d7f1779275c3f80065d1ee625c0415afa1b731b Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Sun, 2 Apr 2023 10:50:48 -0700 Subject: [PATCH 1/4] improving error messaging --- src/repo/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repo/index.ts b/src/repo/index.ts index 62c16d4..a94e559 100644 --- a/src/repo/index.ts +++ b/src/repo/index.ts @@ -92,7 +92,7 @@ export async function addIdentifierToNetwork(dir: string, networkCode: string, i const networkInfoFilePath = path.join(dir, getDirPathForTokenlist(networkCode), 'info.json'); if(!fs.existsSync(networkInfoFilePath)) { - console.error('addIdentifierToNetwork Cannot find asset info file for network ' + networkCode + ' in directory ' + dir); + console.error('addIdentifierToNetwork Cannot find asset info file for network ' + networkCode + ' in location ' + networkInfoFilePath); return { addedIdentifier: false }; } From 3db6524392b7dab96c720aa2b64203702b26c1e1 Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Sun, 2 Apr 2023 10:51:08 -0700 Subject: [PATCH 2/4] 1.0.193 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ada462c..bee5bcd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@map3xyz/assets-helper", - "version": "1.0.192", + "version": "1.0.193", "description": "A library for maintaining the assets repo.", "author": "pellicceama", "keywords": [ From 2b17a4c3b169b736d5a84385d37ecf832cde2065 Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Sun, 2 Apr 2023 10:57:41 -0700 Subject: [PATCH 3/4] fixing network identifier call --- src/repo/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repo/index.ts b/src/repo/index.ts index a94e559..a7def91 100644 --- a/src/repo/index.ts +++ b/src/repo/index.ts @@ -89,7 +89,7 @@ export async function addIdentifierToNetwork(dir: string, networkCode: string, i throw new Error('Identifier key ' + identifierKey + ' is not allowed for networks'); } - const networkInfoFilePath = path.join(dir, getDirPathForTokenlist(networkCode), 'info.json'); + const networkInfoFilePath = path.join(dir, getDirPathForNetworkCode(networkCode), 'info.json'); if(!fs.existsSync(networkInfoFilePath)) { console.error('addIdentifierToNetwork Cannot find asset info file for network ' + networkCode + ' in location ' + networkInfoFilePath); From a1c65949c3a24e34b395ce61a05b8c6db0244420 Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Sun, 2 Apr 2023 10:57:49 -0700 Subject: [PATCH 4/4] 1.0.194 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bee5bcd..15fefaf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@map3xyz/assets-helper", - "version": "1.0.193", + "version": "1.0.194", "description": "A library for maintaining the assets repo.", "author": "pellicceama", "keywords": [