I was working on a opensea nft project on brownie, I am able to create and deploy successfully the metadata on ipfs but when I was setting up the tokenURI I am getting a positive response from the rinkeby etherscan that the tokenURI is set but the token image and token details are not posted on opensea. I seriously need help.
I am pasting the metadata produced : {"name": "Arnab", "description": "Arnab is great", "image": "https://ipfs.io/ipfs/QmaotUK8BXdvidgYctMBcSBuvgrmbEj7EgjAShanyEHPXb", "attributes": [{"trait_type": "Restless", "value": 100}]}
The tokenURI to ipfs is : https://ipfs.io/ipfs/QmcV7cWVDGwsHDtniQ86FYEt85wFe5r4ogCTyPNyGfcQ4j
This is the setTokenURI function from openzeppelin which I am using:
function setTokenURI(uint256 tokenId, string memory _tokenURI) public {
require(
_isApprovedOrOwner(_msgSender(), tokenId),
"ERC721: transfer caller is not owner nor approved"
);
_setTokenURI(tokenId, _tokenURI);
}
Even after several tries and waiting for n hrs the details are not shown in opensea. Please help...