Rename SupportsInterfaceWithLookup to ERC165 (#1288)
* rename SupportsInterfaceWithLookup to ERC165 * rename SupportsInterfaceWithLookup files to ERC165
This commit is contained in:
committed by
Nicolás Venturo
parent
ab13379653
commit
661e5d86dc
23
test/introspection/ERC165.test.js
Normal file
23
test/introspection/ERC165.test.js
Normal file
@ -0,0 +1,23 @@
|
||||
const { shouldSupportInterfaces } = require('./SupportsInterface.behavior');
|
||||
const { assertRevert } = require('../helpers/assertRevert');
|
||||
|
||||
const ERC165 = artifacts.require('ERC165Mock');
|
||||
|
||||
require('chai')
|
||||
.should();
|
||||
|
||||
contract('ERC165', function () {
|
||||
beforeEach(async function () {
|
||||
this.mock = await ERC165.new();
|
||||
});
|
||||
|
||||
it('does not allow 0xffffffff', async function () {
|
||||
await assertRevert(
|
||||
this.mock.registerInterface(0xffffffff)
|
||||
);
|
||||
});
|
||||
|
||||
shouldSupportInterfaces([
|
||||
'ERC165',
|
||||
]);
|
||||
});
|
||||
Reference in New Issue
Block a user