diff --git a/test/introspection/ERC165.test.js b/test/introspection/ERC165.test.js index 5e91e58d361..403856250d4 100644 --- a/test/introspection/ERC165.test.js +++ b/test/introspection/ERC165.test.js @@ -9,6 +9,11 @@ contract('ERC165', function (accounts) { this.mock = await ERC165Mock.new(); }); + it('register interface', async function () { + await this.mock.registerInterface('0x00000001'); + expect(await this.mock.supportsInterface('0x00000001')).to.be.equal(true); + }); + it('does not allow 0xffffffff', async function () { await expectRevert(this.mock.registerInterface('0xffffffff'), 'ERC165: invalid interface id'); });