From e9a8d16e41c24f017f33b2703e50fb31678c76be Mon Sep 17 00:00:00 2001 From: xavikh Date: Wed, 11 Dec 2024 11:53:30 +0100 Subject: [PATCH] Test supportsInterface --- test/escrow/escrow/Lock.t.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/escrow/escrow/Lock.t.sol b/test/escrow/escrow/Lock.t.sol index c868621..338d498 100644 --- a/test/escrow/escrow/Lock.t.sol +++ b/test/escrow/escrow/Lock.t.sol @@ -8,6 +8,9 @@ import {DAO} from "@aragon/osx/core/dao/DAO.sol"; import {DaoUnauthorized} from "@aragon/osx/core/utils/auth.sol"; import {Multisig, MultisigSetup} from "@aragon/multisig/MultisigSetup.sol"; +import {IERC721EnumerableUpgradeable as IERC721Enumerable} from "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721EnumerableUpgradeable.sol"; +import {IERC721MetadataUpgradeable as IERC721Metadata} from "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol"; + import {ProxyLib} from "@libs/ProxyLib.sol"; import {IEscrowCurveTokenStorage} from "@escrow-interfaces/IEscrowCurveIncreasing.sol"; @@ -39,6 +42,8 @@ contract TestLockMintBurn is EscrowBase, IEscrowCurveTokenStorage, IGaugeVote { function testSupportsInterface() public view { assertTrue(nftLock.supportsInterface(type(ILock).interfaceId)); assertFalse(nftLock.supportsInterface(0xffffffff)); + assertTrue(nftLock.supportsInterface(type(IERC721Metadata).interfaceId)); + assertTrue(nftLock.supportsInterface(type(IERC721Enumerable).interfaceId)); } function testFuzz_OnlyEscrowCanMint(address _notEscrow) public {