From c50e534f444803184829de93019b2efb7a93bab9 Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Fri, 22 Dec 2023 15:25:33 +0100 Subject: [PATCH] remove truffle specific tests --- .../utils/introspection/SupportsInterface.behavior.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/test/utils/introspection/SupportsInterface.behavior.js b/test/utils/introspection/SupportsInterface.behavior.js index 83b2645927c..27d153170b2 100644 --- a/test/utils/introspection/SupportsInterface.behavior.js +++ b/test/utils/introspection/SupportsInterface.behavior.js @@ -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'; @@ -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; } }