Open JAI-VINOD-GIT opened 2 years ago
This is how my basic test contract look's like:
Deployment script :
Goerli test net block explorer ,after successful transaction
Can you share how your metadata looks like?
What wallet did you used?
Metamask mobile
I also have the same issue........
@JAI-VINOD-GIT are you able to see it on OpenSea? I have the same issue for non erc-721a NFTs, and it maybe it's not an issue of this implementation.
Hi,
you have to override function tokenURI, not _baseURI. This because if _baseURI is set, then tokenURI (which is the function called to check the NFT metadata) will return a concatenation of _baseURI and the tokenID. Also for me it worked passing the https URL like this:
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
return 'https://gateway.pinata.cloud/ipfs/"the metadata CID"';
}
After minting i imported the NFT with my address & token ID into my wallet, its getting imported but i can see only an text on that NFT