Hey everyone, I’m having a weird issue with my NFT project. I made a smart contract using OpenZeppelin’s ERC721 stuff. It works fine for minting and transferring NFTs. But there’s a problem when I view them on OpenSea Testnet.
I minted two NFTs and could see them in my OpenSea collection. Then I sent one to another address. The contract and OpenSea both show the new owner correctly, but the NFT disappeared from the ‘Collected’ tab on OpenSea.
Here’s a simplified version of my contract:
contract CoolNFT is ERC721, ERC721Enumerable, ERC721URIStorage {
using Counters for Counters.Counter;
Counters.Counter private _nftIds;
uint256 public constant MAX_NFTS = 1000;
constructor() ERC721('CoolNFT', 'COOL') {}
function mint(address to, string memory uri) public {
require(_nftIds.current() < MAX_NFTS, 'All NFTs minted');
uint256 newId = _nftIds.current();
_nftIds.increment();
_safeMint(to, newId);
_setTokenURI(newId, uri);
}
// Override functions here...
}
Any ideas on why the transferred NFT isn’t showing up in the new owner’s ‘Collected’ tab? It’s driving me nuts!
hey jade, i ran into smth similar. check ur metadata URIs. make sure theyre accessible and not just local paths. opensea can be finicky with testnet metadata. also, refresh metadata on opensea after transfers. sometimes it takes a bit to update. good luck!
I’ve encountered this issue before. It’s likely related to OpenSea’s indexing process on the testnet. Sometimes it takes a while for transferred NFTs to appear in the new owner’s ‘Collected’ tab. Have you waited at least 24 hours? If so, try re-syncing the metadata on OpenSea. Also, double-check your token URI implementation. Ensure it’s returning valid metadata that OpenSea can parse correctly. If the problem persists, you might want to verify your contract on Etherscan and interact with it directly to confirm everything’s working as expected on the blockchain level.
hey there jade75! i’m kinda curious about this nft visibility issue you’re having. have you tried poking around in the opensea api at all? sometimes there’s quirks there that don’t show up in the ui. also, i wonder if theres any difference between how testnet and mainnet handle transferred nfts? maybe its worth comparing the behavior? oh and random thought - does the new owner have any other nfts in their collection? wondering if that impacts how things display. keep us posted on what you find out!