The EIP-2981: NFT Royalty Standard implementation is incomplete, missing the implementation of function supportsInterface(bytes4 interfaceID) external view returns (bool); from the EIP-165: Standard Interface Detection
A marketplace implemented royalties could check if the NFT have royalties, but if donβt add the interface of ERC2981 on the _registerInterface, the marketplace canβt know if this NFT haves
Manual Review
Like in solmate ERC1155.sol add the ERC2981 interfaceId on the FERC1155 contract
/*//////////////////////////////////////////////////////////////
ERC165 LOGIC
//////////////////////////////////////////////////////////////*/
function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
return
super.supportsInterface(interfaceId) ||
interfaceId == 0x2a55205a; // ERC165 Interface ID for ERC2981
}
The text was updated successfully, but these errors were encountered:
All reactions