nft-contracts
nft-contracts copied to clipboard
NFTExtension interface conformance doesn't check anything
Given INFTExtension interface is empty, the ERC165 check for that is always true.
https://github.com/buildship-dev/nft-contracts/blob/2f33f71c05266b45b1f1e3fb80e421087dd8f5b7/contracts/factory/extensions/INFTExtension.sol#L6-L7
Which means addExtension check doesn't check anything:
https://github.com/buildship-dev/nft-contracts/blob/2f33f71c05266b45b1f1e3fb80e421087dd8f5b7/contracts/factory/MetaverseNFT.sol#L201-L205
Possible solutions are:
- including some specific field like keccak("nftfactory.nftextension")
- including
nameortypeview function