diff --git a/src/repo/index.ts b/src/repo/index.ts index a4f3924..51b8e17 100644 --- a/src/repo/index.ts +++ b/src/repo/index.ts @@ -98,7 +98,9 @@ export async function addIdentifierToAsset(dir: string, networkCode: string, add const assetInfoFile = JSON.parse(fs.readFileSync(assetInfoFilePath, 'utf8')); - if(assetInfoFile.identifiers[identifierKey]) { + if(!assetInfoFile.identifiers + || Object.keys(assetInfoFile.identifiers).length === 0 + || assetInfoFile.identifiers[identifierKey]) { return { addedIdentifier: false }; }