Skip to content

Commit 996b9da

Browse files
committed
fix(core): do not log a warning when nft metadata files are missing
1 parent f5628b7 commit 996b9da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/src/Asset/NftMetadata/fromPlutusData.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const mapFile = (file: Cardano.PlutusData, logger: Logger): NftMetadataFile | un
101101
};
102102

103103
const mapFiles = (files: string | Cardano.PlutusData | undefined, logger: Logger): NftMetadataFile[] | undefined => {
104+
if (!files) return;
104105
if (!isPlutusList(files)) {
105106
logger.warn('expected "files" to be a list');
106107
return;

0 commit comments

Comments
 (0)