Enhancing the NFT marketplace
Here are some ideas for you to implement in your NFT marketplace application. They can make your NFT marketplace more convenient, generate revenue, and make users happier.
Supporting non-standard NFTs
The NFT marketplace smart contract you’ve written interacts with the HelloNFT
smart contract. But it can support other NFT smart contracts. People can buy and sell other NFTs from other NFT smart contracts. One requirement exists, however: any NFT smart contract that wants to be traded in this NFT marketplace smart contract needs to follow the ERC-721 standard. As you can see, you use the transferFrom
function of the NFT smart contract to transfer the NFT from the seller to the buyer. You also use the ownerOf
function of the NFT smart contract to check the ownership of the NFT.
But what if the NFT smart contract doesn’t follow the ERC-721 standard?
You can just say, too bad. It’s their fault for not following the standard...