Skip to content

Commit

Permalink
Merge pull request #46 from map3xyz/binance-fixes
Browse files Browse the repository at this point in the history
improving error messaging
  • Loading branch information
pellicceama authored Apr 4, 2023
2 parents be82145 + a1c6594 commit 2821599
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions src/repo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}

Expand Down

0 comments on commit 2821599

Please sign in to comment.