Interview question: How Compatibility Between ERC-721 and ERC-1155 NFT works?
I had a interview recently with NFT project and I could not answer the question confidently. Can anyone help me to understand it for next interview.
In an NFT contract that supports both ERC-721 and ERC-1155 standards. ERC-721 works for single, unique NFTs, while ERC-1155 supports single and batch minting. It should allow the contract to handle both, expanding its use across platforms that require either standard.
How can we achieve smooth functionality for both standards in a single contract. how we can make minting work for individual NFTs and in batches, based on different needs, without increasing gas fees unnecessarily. I’m looking for tips on contract structure, relevant libraries, or any approach that has proven effective. Thank you!