2

There are two contracts:

  • ERC721 NFT contract (enables minting, etc)
  • Marketplace contract (has a sell function and buy function)

When somebody calls the function to put a NFT for sale in the marketplace contract, I want it to only permit NFTs that were created in the aforementioned NFT contract. If someone tries to sell an unrelated NFT using that marketplace contract, he should be denied.

How can I do this?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.