metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.32k stars 6.25k forks source link

Artwork doesn't load in my wallet #1287

Closed Lopezz11 closed 2 years ago

Lopezz11 commented 2 years ago

Describe the bug When I test the candy machine in solana devnet, at the time i mint it appears as succesfuly, but the artwork (png) doesn't load on my phantom wallet. (Everything else is fine, metadata shows up).

To Reproduce Steps to reproduce the behavior:

  1. Test candy machine on a Localhost

Expected behavior It should mint succesfuly, then the NFT's artwork should appear in the wallet with their respective metadata

Screenshots image

Desktop (please complete the following information):

singularity-saggio commented 2 years ago

I noticed this too. A few things i've noticed...if you look at the Token Metadata Standard (https://docs.metaplex.com/nft-standard) you will see a property for image which should resolve to the arweave image (url + png) :

"image": "https://www.arweave.net/abcd5678?ext=png"

But if you look up an example of what the CLI uploads, its missing that property all together https://solscan.io/token/D9DzKWmprE3N33PnxQz3eLX2JeQPe1G2xTFzAMNMLHc3?cluster=devnet#metadata

singularity-saggio commented 2 years ago

Make sure your json files are properly structured > each file should point SPECIFICALLY to the file it represents: https://docs.metaplex.com/create-candy/prepare-assets

AlexLup06 commented 2 years ago

Hi, I have the same problem. The uri of the image doesn't get updated. It just says "image": "2.png" etc.. Or to be specific it says that for >1. For the first 2 NFTs it works like it should by replacing the 0.png an 1.png with the image uri. But for the upcoming ones it does not. I am so frustrated.

edit: I literally just tried the example where I just added 2 more sons and pngs and it only just works for the first 2. If the example from the docs doesn't work the something is definitely wrong. I use my new m1 pro MacBook and still have my old MacBook Air with intel lying around. I just tried it there, where it always worked. I just tried it there again and surprise surprise it only changes uri for the first 2 metadata files. What kind of bug is that? I just want an explanation from the metaplex team.

Lopezz11 commented 2 years ago

I have to say that at the time I upload the assets no info from lamport costs from arweave pops up as it is shown in this yt video screenshoot. image

For me it only shows that the process ended

Lopezz11 commented 2 years ago

Hi. I have found what was causing the problem. At the time I generated my NFTs with Hashlips art engine code, something gone wrong. I don't really know why, but my metadata references of the pics files weren't correct. The metada kept generating itself by applying "images.png" to all pics and not "1.png", "2.png", "3.png" and so...

My solution went through changing (main.js) that image.png with ${_edition}.png, so the references were correct and... It worked!! At the time I updated my assets with the new metadata to the candy machine and minted again in the devnet, artwork shows correctly!! Hope this helps anyone is reading

if (network == NETWORK.sol) { tempMetadata = { //Added metadata for solana name: tempMetadata.name, symbol: solanaMetadata.symbol, description: tempMetadata.description, //Added metadata for solana seller_fee_basis_points: solanaMetadata.seller_fee_basis_points, image: ${_edition}.png, //Added metadata for solana external_url: solanaMetadata.external_url, edition: _edition, ...extraMetadata, attributes: tempMetadata.attributes, properties: { files: [ { uri: "image.png", type: "image/png", }, ], category: "image", creators: solanaMetadata.creators, }, }; } metadataList.push(tempMetadata); attributesList = []; };

catsonmats commented 2 years ago

V2 or V1 of the cli?

github-actions[bot] commented 2 years ago

This Issue has received no activity for 30 days. We will close it in 2 days, please reopen if you are still experiencing this issue.