How do you explain to an interviewer the trade-offs of a single contract acting like both ERC-721 and ERC-1155?
I recently struggled with an interview question about designing a single NFT contract that behaves like both ERC-721 and ERC-1155. The interviewer wanted a practical explanation, not just theory, and I found myself overthinking it.
I understand the basics — 721 for unique tokens, 1155 for batches — but when they asked:
→ “How would you merge them without gas costs increasing?”
→ “How would marketplaces like OpenSea detect the right standard?”
→ “What trade-offs matter in real projects?”
I wasn’t sure how to structure a clear answer.
Is there an actual design pattern senior devs use for hybrid NFT architectures?
Do OpenZeppelin contracts make this easier, or is it better to keep both standards separate and tie them together at the app level?
If you’ve answered this in interviews or built something similar, how would you explain it without sounding too theoretical?