I am working on an NFT contract that must support both ERC-721 and ERC-1155 standards. ERC-721 works for single, unique NFTs, while ERC-1155 supports single and batch minting. I aim to allow the contract to handle both, expanding its use across platforms that require either standard.
The main issue I’m facing is achieving smooth functionality for both standards in a single contract. I need a way to make minting work for individual NFTs and in batches, based on different needs, without increasing gas fees unnecessarily. Ensuring marketplace and wallet compatibility across both standards is also important.
Has anyone here managed to achieve this? I’m looking for tips on contract structure, relevant libraries, or any approach that has proven effective. Thank you!