-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
In addition to my questions, when I am creating collectibles, I actually have a repeated breed for token_id 0 and 1, does the course tutorial tackle this problem? |
Beta Was this translation helpful? Give feedback.
-
Hello @aloyboi
You mean you repeated it intentionally or the code itself does not handle that? In any case the BREED is not a unique identifier, so you can have a lot of pugs with the same BREED, as this is a simple project the code does not go deeper, and create generative NFT's with different layers.
This is harder to answer as this could be for many reasons, like a firewall configuration, port conflicts, bad gateway and so on, so I'll need more info on this. Are you running IPFS desktop app or CLI? |
Beta Was this translation helpful? Give feedback.
Hello @aloyboi
Interesting question, let's try to answer it!
tokenIdToBreed
is mapping (similar to a dict on python) so it relates a number with a Breed object (enum), but python does not understand the logic behind Enums on Solidity, so this way we can pass a simple integer into the python script and brownie will just run it, internally that integer will reference the Enum object containing the breeds of each PUG. And remember that a Enum is just a nice way to enumerate stuff, like 0 BREED1, 1 BREED2 and so on.You mean you r…