import { GnosisSafe } from '../../../../typechain/src/ethers-v5/v1.1.1/GnosisSafe' ; import { sameString } from '../../../utils' ; import GnosisSafeContractEthers from '../GnosisSafeContractEthers' ; class GnosisSafeContract_V1_1_1_Ethers extends GnosisSafeContractEthers { constructor ( public contract ) { super ( contract ) ; } async getModules ( ) { return this . contract . getModules ( ) ; } async isModuleEnabled ( moduleAddress ) { const modules = await this . getModules ( ) ; const isModuleEnabled = modules . some ( ( enabledModuleAddress ) => sameString ( enabledModuleAddress , moduleAddress ) ) ; return isModuleEnabled ; } } export default GnosisSafeContract_V1_1_1_Ethers ;