From 7fdf94f82439b9a18b9e573fac8bf0bc6d3e1ddb Mon Sep 17 00:00:00 2001 From: apanizo Date: Thu, 27 Sep 2018 10:55:17 +0200 Subject: [PATCH] Creating safe's instances using 0.0.2 contracts --- src/logic/contracts/safeContracts.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/logic/contracts/safeContracts.js b/src/logic/contracts/safeContracts.js index 730cc3c0..a38a1087 100644 --- a/src/logic/contracts/safeContracts.js +++ b/src/logic/contracts/safeContracts.js @@ -3,13 +3,11 @@ import contract from 'truffle-contract' import { ensureOnce } from '~/utils/singleton' import { getWeb3 } from '~/logic/wallets/getWeb3' import { promisify } from '~/utils/promisify' -import GnosisSafeSol from '#/GnosisSafeTeamEdition.json' -import GnosisPersonalSafeSol from '#/GnosisSafePersonalEdition.json' +import GnosisSafeSol from '#/GnosisSafe.json' import ProxyFactorySol from '#/ProxyFactory.json' import CreateAndAddModules from '#/CreateAndAddModules.json' import DailyLimitModule from '#/DailyLimitModule.json' import { calculateGasOf, calculateGasPrice, EMPTY_DATA } from '~/logic/wallets/ethTransactions' -import { signaturesViaMetamask } from '~/config' let proxyFactoryMaster let createAndAddModuleMaster @@ -33,13 +31,6 @@ function createAndAddModulesData(dataArray) { } const createGnosisSafeContract = (web3: any) => { - if (signaturesViaMetamask()) { - const gnosisSafe = contract(GnosisPersonalSafeSol) - gnosisSafe.setProvider(web3.currentProvider) - - return gnosisSafe - } - const gnosisSafe = contract(GnosisSafeSol) gnosisSafe.setProvider(web3.currentProvider)