Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Can not see deployed factory on openSea when deploying it to matic mumbai testnet. #106

Open
chahakshah111 opened this issue Jul 28, 2021 · 3 comments

Comments

@chahakshah111
Copy link

Hey, when i deploy factory on rinkeby network I can see it on openSea testnet version, but when I deploy it on matic mumbai testnet I'm not able to see any factory on openSea. But I can call any function on factory like mint.
What could be the issue. Does openSea support factory for matic mumbai network

@KIRIN178
Copy link

I also want to know the solution about this issue.

@zhenmu
Copy link

zhenmu commented Jun 30, 2022

same problems.

Finally, I added the function:

function supportsInterface(bytes4 interfaceId) public view virtual returns (bool)

such as:

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

or


    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        bytes4 _ERC165_ = 0x01ffc9a7;
        bytes4 _ERC721_ = 0x80ac58cd;
        bytes4 _ERC2981_ = 0x2a55205a;
        bytes4 _ERC721Metadata_ = 0x5b5e139f;
        return interfaceId == _ERC165_ 
            || interfaceId == _ERC721_
            || interfaceId == _ERC2981_
            || interfaceId == _ERC721Metadata_;
    }

@vrogojin
Copy link

Same problem. Anyone ever solved it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants