What are the benefits of ERC721Holder.sol?

Hi @naszam,

You shouldn’t inherit from ERC721Holder as you don’t want to hold ERC721 tokens in your contract.

If you wanted to, you could implement IERC721Receiver to reject any ERC721 transfers to your contract when made with safeTransferFrom. The opposite of ERC721Holder.

1 Like