From 29596f940a3c9d84240bae6c2dafd41d7983d81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=3DAmel=20Saliba=C5=A1i=C4=87?= Date: Sat, 25 Dec 2021 15:53:31 +0000 Subject: [PATCH] fix: metadata image correctly replaced with consecutive number --- includes/nft_creator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/nft_creator.py b/includes/nft_creator.py index cbf652f..ed6fb04 100644 --- a/includes/nft_creator.py +++ b/includes/nft_creator.py @@ -190,6 +190,7 @@ def CreateNfts(self, nftTotalQuantity, jsonTemplate, attributes, orderedLayersPa nftName = nftMetadata['name'] nftMetadata['attributes'] = nftAttributes nftMetadata['name'] = nftName + ' #' + str(self.nftsCreatedCounter+1) + nftMetadata['image'] = str(self.nftsCreatedCounter) + '.png' nft = Nft(nftsCounterThisRun, nftMetadata['name'], rawAttributes, filteredAttributes,nftMetadata, nftPaths, orderedLayersPath, attributes_count, folder_path) nftsCreated.append(nft) self.nftsCreatedCounter += 1