Cyfrin / foundry-nft-cu

22 stars 25 forks source link

Metamask cannot display NFT images properly #23

Closed segonse closed 6 months ago

segonse commented 9 months ago

I first deployed BasicNFT to Sepolia and imported the contract address and TokenId into Metamask, but I couldn't get the picture, which I thought was a network problem. Then I deployed MoodNFT to anvil, but I couldn't get the smiley face either. Finally, I git cyfrin code locally and deploy MoodNFT to anvil with the same result

segonse commented 9 months ago

it's like this.

image

NandanNNN commented 9 months ago

I am also getting same issue

Himchenhim commented 9 months ago

I have the same issue too

NandanNNN commented 8 months ago

@PatrickAlphaC can you please help here? i tried to look into other discussions also but didn't got much.

PatrickAlphaC commented 8 months ago

ah... whoops. Does the ipfs link work for you?

This is one of the downsides of IPFS. Someone has to pin it! Looks like my pinning service was down. Can you try now?

PatrickAlphaC commented 8 months ago

(you'd have to delete and readd the NFT)

luiscaceresd commented 8 months ago

@PatrickAlphaC still not working, unfortunately. The weird part is that it displays fine on opensea -> https://testnets.opensea.io/assets/sepolia/0xc04ca966e0D160bfB9Ad4ACF01435552A17Fd342/2 https://sepolia.etherscan.io/nft/0xc04ca966e0d160bfb9ad4acf01435552a17fd342/2

image

PatrickAlphaC commented 8 months ago

what the... uh... Maybe the metamask API is buggin...

luiscaceresd commented 8 months ago

Yeah I kinda moved on :) my moody nfts is working fine tho!

denisgulev commented 7 months ago

Hello, i run into the same problem of Metamask not showing the NFT image and wanted to share my solution. After some research i found that Metamask has a toggle in the settings ("Display NFT media"). When turned on, i finally saw the two SVGs deployed with the MoodNft contract.

*NOTE: image

segonse commented 6 months ago

coooool!! Thanks denisgulev,This issue has been resolved!