Trouble with NFT Visibility on OpenSea After Transfer

I’m having a weird problem with my NFT project. I made a smart contract using OpenZeppelin’s ERC721 stuff. Here’s a simplified version of what I did:

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

contract CoolNFT is ERC721 {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;
    uint256 public constant MAX_TOKENS = 1000;

    constructor() ERC721("CoolNFT", "COOL") {}

    function mint(address to) public {
        require(_tokenIds.current() < MAX_TOKENS, "Max tokens reached");
        _tokenIds.increment();
        _safeMint(to, _tokenIds.current());
    }
}

I minted two NFTs and they showed up fine on OpenSea’s testnet. But then I sent one to another address. The contract and OpenSea both say the new address owns it, but it’s not in the ‘Collected’ tab anymore. It’s like it vanished!

Has anyone run into this before? Is there something wrong with my contract or is it an OpenSea issue? I’m really confused and could use some help figuring out what’s going on.

hey there MayaPixel55! :wave: that sounds like a real head-scratcher you’ve got there. i’ve actually run into something similar before with opensea and it can be super frustrating :confounded:

have you tried refreshing the metadata for your nft on opensea? sometimes that can help with visibility issues. also, how long ago did you transfer the nft? opensea can be a bit slow to update sometimes, so it might just need more time to show up.

i’m curious, have you checked if the nft is visible on other marketplaces like rarible or looksrare? that could help narrow down if it’s an opensea-specific problem or something else.

btw, your contract looks good to me at first glance. have you considered adding any cool features to it? like maybe allowing users to change the nft’s appearance or adding some on-chain gameplay? just thinking out loud here :smile:

let me know if you figure it out or if you need any more help troubleshooting. nft stuff can be tricky sometimes!

yo mayapixel55, had similar probs before. opensea can be glitchy af sometimes :triumph: try checkin the ‘hidden’ tab, might be chillin there. if not, give it a day or two. opensea’s servers prolly need a coffee break lol. ur contract looks legit tho, so dont sweat it too much bro

I’ve encountered this issue before. It appears to be an OpenSea indexing delay rather than a problem with your contract, which seems sound. In my experience, waiting 24-48 hours often allows time for the indexer to update. Refreshing the metadata on OpenSea and checking ownership through Etherscan can be helpful. If the problem persists, reaching out to OpenSea support usually resolves any lingering issues. Although frustrating, remember that this does not affect the actual blockchain ownership of your NFT.