From e61f9d40042b6fd7d9fbee40d3bb61a337a0004a Mon Sep 17 00:00:00 2001 From: dingning-aspecta Date: Sat, 21 Oct 2023 07:50:36 +0000 Subject: [PATCH] fix: The NFTPortal should declare that the IPortal interface is implemented --- contracts/src/examples/portals/NFTPortal.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/src/examples/portals/NFTPortal.sol b/contracts/src/examples/portals/NFTPortal.sol index 102e50d6..688d670a 100644 --- a/contracts/src/examples/portals/NFTPortal.sol +++ b/contracts/src/examples/portals/NFTPortal.sol @@ -5,6 +5,8 @@ import { IERC721, ERC721 } from "openzeppelin-contracts/contracts/token/ERC721/E import { IERC165 } from "openzeppelin-contracts/contracts/utils/introspection/ERC165.sol"; import { AbstractPortal } from "../../interface/AbstractPortal.sol"; import { Attestation, AttestationPayload } from "../../types/Structs.sol"; +import { IPortal } from "../../interface/IPortal.sol"; + /** * @title NFT Portal @@ -62,6 +64,7 @@ contract NFTPortal is AbstractPortal, ERC721 { function supportsInterface(bytes4 interfaceID) public pure virtual override(AbstractPortal, ERC721) returns (bool) { return interfaceID == type(AbstractPortal).interfaceId || + interfaceID == type(IPortal).interfaceId || interfaceID == type(IERC165).interfaceId || interfaceID == type(IERC721).interfaceId; }