Skip to content

Commit

Permalink
remove truffle specific tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Dec 22, 2023
1 parent ff326ce commit c50e534
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/utils/introspection/SupportsInterface.behavior.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { expect } = require('chai');
const { selector, interfaceId } = require('../../helpers/methods');
const { interfaceId } = require('../../helpers/methods');
const { mapValues } = require('../../helpers/iterate');

const INVALID_ID = '0xffffffff';
Expand Down Expand Up @@ -123,15 +123,6 @@ function shouldSupportInterfaces(interfaces = []) {

// Check the presence of each function in the contract's interface
for (const fnSig of SIGNATURES[k]) {
// TODO: Remove Truffle case when ethersjs migration is done
if (this.contractUnderTest.abi) {
const fnSelector = selector(fnSig);
return expect(this.contractUnderTest.abi.filter(fn => fn.signature === fnSelector).length).to.equal(
1,
`did not find ${fnSig}`,
);
}

expect(this.contractUnderTest.interface.hasFunction(fnSig), `did not find ${fnSig}`).to.be.true;
}
}
Expand Down

0 comments on commit c50e534

Please sign in to comment.