Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed an issue which uses a wrong variable name #22

Merged
merged 2 commits into from
Jan 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def generate_unique_images(amount, config):
cid = "ipfs://{}".format(cid)
if cid.endswith("/"):
cid = cid[:-1]
for i, token in enumerate(all_images):
for i, item in enumerate(all_images):
with open('./metadata/' + str(item["tokenId"]) + '.json', 'r') as infile:
original_json = json.loads(infile.read())
original_json["image"] = original_json["image"].replace(config["baseURI"]+"/", cid+"/")
Expand Down Expand Up @@ -137,4 +137,4 @@ def generate_unique_images(amount, config):
})

#Additional layer objects can be added following the above formats. They will automatically be composed along with the rest of the layers as long as they are the same size as eachother.
#Objects are layered starting from 0 and increasing, meaning the front layer will be the last object. (Branding)
#Objects are layered starting from 0 and increasing, meaning the front layer will be the last object. (Branding)