Closed justinhchae closed 2 years ago
Thanks for making this... I can see your contract, I even tried creating
a new one myself... so odd... I'm not sure.
It looks like you did everything right. I can see your cat and everything...
Sorry, I'd have to debug with you for quite some time to figure it out... It could be an opensea problem... but yeah, it looks like everything is correct...
Closing for now... but happy to follow up.
Thanks for the response! I have actually been able to track down the issue.
The code you provide does exactly what you designed it to do - the coin is indeed minted.
The part I was missing was to get the right information that represents the actual minted token which can be accessed in Etherscan in the "Tokens Transferred" section. See screen capture below:
I I was able to learn this by following another tutorial from Etherium.org https://ethereum.org/en/developers/tutorials/how-to-view-nft-in-metamask/. The part about transfering a token to wallet after minting.
Anyway, big thanks again for putting this out there.
No problem... You still should be able to see it on opensea after deploying the contract... can you see it in opensea now? What did you do to resolve this?
Yea, thanks for asking about this becuase the OpenSea part is still unresolved. This is what is interesting / I'm not sure about.
If I look up the contract address [0xdd73138e76a04f5392c776147f0725a1b7e5867d] I think I see the token that I minted originally and a second token (one that you made more recently using the same contract?) on OpenSea. I also think I see the transaction where I transferred it to my Metamask wallet.
Etherscan link to two of the transactions mentioned in this reply.
However, in OpenSea, I only see tokens that are probably test runs based on your tutorial (circles and random lines). But the more complex SVGs like my cat test show up with only the icon of a picture (next screenshot). I am wondering whether this is because it's one or a combination of a few things (too big/complex image, not supported on testnet, ...)
Great repo! I followed along with your YouTube video and everything seems to work but I am not able to generate a token that I can look up on Opensea. I am not sure if I am missing a step or if the process is just taking some time to finish.
The issue is that when I run the scripts to generate a contract from an SVG, a contract is generated but a token is never minted. For example, when I go to Opensea and look for the contract (as you do early in the video at 12:15), nothing shows up for my test project when I perform the equivalent steps. However, the Etherscan seems to verify that the transaction went through. Link to my last contract's Etherscan: https://rinkeby.etherscan.io/address/0xdd73138E76A04f5392c776147F0725A1b7E5867D
I followed along with the quick start instructions and my only deviation was to use a different SVG file (simple cartoon of a cat) to see if something with a bit more complexity would work. I should note that I got the same results with the circle SVG example you provide. I thought that the call to _safeMint() in the creat function should perform this task but the token counter is at 0 when I look up the metadata online - not sure how to debug this or where to start.
I am still learning so please excuse me if I am not asking for the correct thing but I guess my question is this: On a testnet such as Rinkeby and after I successfully create the contract and verify it on Etherscan, how do I actually mint a token?
Some CLI outputs and screencaps to illustrate what has worked and what has not: