diff --git a/package.json b/package.json index ada462c..15fefaf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@map3xyz/assets-helper", - "version": "1.0.192", + "version": "1.0.194", "description": "A library for maintaining the assets repo.", "author": "pellicceama", "keywords": [ diff --git a/src/repo/index.ts b/src/repo/index.ts index 62c16d4..a7def91 100644 --- a/src/repo/index.ts +++ b/src/repo/index.ts @@ -89,10 +89,10 @@ 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 directory ' + dir); + console.error('addIdentifierToNetwork Cannot find asset info file for network ' + networkCode + ' in location ' + networkInfoFilePath); return { addedIdentifier: false }; }