Skip to content

Commit

Permalink
fix: The NFTPortal should declare that the IPortal interface is imple…
Browse files Browse the repository at this point in the history
…mented
  • Loading branch information
dingning-aspecta committed Oct 21, 2023
1 parent c877819 commit e61f9d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/src/examples/portals/NFTPortal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit e61f9d4

Please sign in to comment.