From bebb6a8713f6c8d9ef850d4efb0f9064efb16e11 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contracts/src/examples/portals/NFTPortal.sol b/contracts/src/examples/portals/NFTPortal.sol index 102e50d6..d72125dd 100644 --- a/contracts/src/examples/portals/NFTPortal.sol +++ b/contracts/src/examples/portals/NFTPortal.sol @@ -5,6 +5,7 @@ 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 +63,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; }