Refactor supports interface (#4817)
This commit is contained in:
@ -14,5 +14,5 @@ describe('ERC165', function () {
|
||||
Object.assign(this, await loadFixture(fixture));
|
||||
});
|
||||
|
||||
shouldSupportInterfaces(['ERC165']);
|
||||
shouldSupportInterfaces();
|
||||
});
|
||||
|
||||
@ -85,9 +85,11 @@ const SIGNATURES = {
|
||||
const INTERFACE_IDS = mapValues(SIGNATURES, interfaceId);
|
||||
|
||||
function shouldSupportInterfaces(interfaces = []) {
|
||||
interfaces.unshift('ERC165');
|
||||
|
||||
describe('ERC165', function () {
|
||||
beforeEach(function () {
|
||||
this.contractUnderTest = this.mock || this.token || this.holder;
|
||||
this.contractUnderTest = this.mock || this.token;
|
||||
});
|
||||
|
||||
describe('when the interfaceId is supported', function () {
|
||||
|
||||
Reference in New Issue
Block a user