Lesson 11: Repository Update #1700
Replies: 1 comment 4 replies
-
Hello @Neftyr Well the easiest way to avoid this is just to delete the build folder, as the latest deployment will be erased and the new contract will start at token_id 0 so this will match the json files. (also delete the generated json files before running again). However you approach is awesome also, congrats again. Regarding your question, well it depends on the browser you are using as most of them will just read ipfs/json files as plain text without any type of formatting, to have the generated link formatted on your browser you will need an extension, I highly recommend to try out: The official IPFS extension. I hope this info might help. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have found small issue with repo code in Lesson 11. As I'm new to programming and GitHub, let me how can i rise such discoveries to for example fix repo code a bit.
Problem i have found is located in
scripts.advanced_collectible.create_metadata.py
:As we are using
token_id
to provide name for our.json
ipfs link we end up using incorrect number per eachbreed
as it is just counter for our loop.Below is the .json link generated for ST_BERNARD with current repo code:
As from mapping it is nr. 2 not 0, link to it is different than in
scripts.advanced_collectible.set_token_uri.py
mapping.In order to generate similar link from
scripts.advanced_collectible.set_token_uri.py
fromdog_metadata_dic
. We should change our code increate_metadata.py
.I have prepared corrected code below:
Results of above code:
I couldn't get same .json link as it is in mapping, but i believe this is because my .json link shows everything in 1 line as below:
While repo mapping link shows it .json formatted as below.
How can this be fixed so our generated link shows also formatted data?
Beta Was this translation helpful? Give feedback.
All reactions