nft-contracts
nft-contracts copied to clipboard
ERC721Community: can't burn() via Extension with reducing maxSupply
ERC721Community contract is based on ERC721A which supports burning only by transferring to 0xdead address (0x000000000000000000000000000000000000dEaD). Such burns don't reduce the number of items on OpenSea, because the contract needs to be updated as well
Writing a BurnExtension with reducing maxSupply is currently not possible because reduceMaxSupply is onlyOwner and doesn't allow burning less than totalMinted() amount
I just realised that reducing maxSupply won't help OpenSea to display correct amount, because it's not part of ERC721 standard and OpenSea doesn't read maxSupply at all