From 2ad34656513f37254fe970c7678e7fe945e6950a Mon Sep 17 00:00:00 2001 From: kyokosdream <95386586+kyokosdream@users.noreply.github.com> Date: Thu, 31 Mar 2022 21:40:24 -0700 Subject: [PATCH] update.js should update image with .gif The update.js code taken from HashLips as referenced in the README updates the image field in each JSON file with a .png extension. A user of our platform at https://www.candychain.io/ noticed that the script was causing his generated metadata to point to .png files. --- utils/update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/update.js b/utils/update.js index 276b101..2d8597b 100644 --- a/utils/update.js +++ b/utils/update.js @@ -14,7 +14,7 @@ let data = JSON.parse(rawdata); data.forEach((item) => { item.description = description; - item.image = `${baseUri}/${item.edition}.png`; + item.image = `${baseUri}/${item.edition}.gif`; fs.writeFileSync( `${basePath}/build/json/${item.edition}.json`, JSON.stringify(item, null, 2) @@ -27,4 +27,4 @@ fs.writeFileSync( ); console.log(`Updated baseUri for images to ===> ${baseUri}`); -console.log(`Updated description for images to ===> ${description}`); \ No newline at end of file +console.log(`Updated description for images to ===> ${description}`);