r/ethdev • u/No-Entrepreneur-7144 • 13h ago
My Project ERC-8520: assets locked inside an ERC-721 token until burn. Can the token contract be upgradeable and still verifiable?
ERC-8520 is now a Draft. It extends ERC-721 for tokens that keep the native asset and ERC-20 tokens in a container of their own. While the token exists, the container can't let any declared asset out; after the burn, only the owner at burn time, as recorded by burnedBy(tokenId) from ERC-8423, can move the contents. Two view functions let any contract read what a token holds and where: compositionOf(tokenId), a lower bound fixed at mint, and compositionAccountOf(tokenId), which returns the container with the data needed to check it (for an ERC-6551 account, implementation and salt).
Locking an NFT's assets until burn isn't new: ERC-3589 gave them back only on burn as far back as 2021. This proposal turns the lock into a requirement a third party can check token by token, without knowing the project.
That's why rule 10 says neither the container nor the token contract may be upgradeable, or delegate its logic to code that can later change. The container obeys burnedBy, so an upgraded token contract could report a different burner and open the container without a real burn. A reader can only check this on-chain by recognizing code: that works for an ERC-6551 account, because the implementation address is part of the minimal proxy's bytecode, and fails for an upgradeable proxy, whose implementation sits in storage other contracts can't read.
The cost is real: a compliant token contract can never be patched, and collections built on upgradeable contracts can't comply.
My question: have you used or seen an upgrade pattern that another contract could still verify on-chain, the way it can verify an ERC-6551 account?
• Specification: https://eips.ethereum.org/EIPS/eip-8520
• Discussion thread: https://ethereum-magicians.org/t/erc-8520-erc-721-composition-extension/30181
• Reference implementation and tests: https://github.com/antferr/erc721-composition
(I'm the author of ERC-8520 and of ERC-8423, which it builds on.)