Creating safe's instances using 0.0.2 contracts
This commit is contained in:
parent
41f4cfaa79
commit
7fdf94f824
|
@ -3,13 +3,11 @@ import contract from 'truffle-contract'
|
||||||
import { ensureOnce } from '~/utils/singleton'
|
import { ensureOnce } from '~/utils/singleton'
|
||||||
import { getWeb3 } from '~/logic/wallets/getWeb3'
|
import { getWeb3 } from '~/logic/wallets/getWeb3'
|
||||||
import { promisify } from '~/utils/promisify'
|
import { promisify } from '~/utils/promisify'
|
||||||
import GnosisSafeSol from '#/GnosisSafeTeamEdition.json'
|
import GnosisSafeSol from '#/GnosisSafe.json'
|
||||||
import GnosisPersonalSafeSol from '#/GnosisSafePersonalEdition.json'
|
|
||||||
import ProxyFactorySol from '#/ProxyFactory.json'
|
import ProxyFactorySol from '#/ProxyFactory.json'
|
||||||
import CreateAndAddModules from '#/CreateAndAddModules.json'
|
import CreateAndAddModules from '#/CreateAndAddModules.json'
|
||||||
import DailyLimitModule from '#/DailyLimitModule.json'
|
import DailyLimitModule from '#/DailyLimitModule.json'
|
||||||
import { calculateGasOf, calculateGasPrice, EMPTY_DATA } from '~/logic/wallets/ethTransactions'
|
import { calculateGasOf, calculateGasPrice, EMPTY_DATA } from '~/logic/wallets/ethTransactions'
|
||||||
import { signaturesViaMetamask } from '~/config'
|
|
||||||
|
|
||||||
let proxyFactoryMaster
|
let proxyFactoryMaster
|
||||||
let createAndAddModuleMaster
|
let createAndAddModuleMaster
|
||||||
|
@ -33,13 +31,6 @@ function createAndAddModulesData(dataArray) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const createGnosisSafeContract = (web3: any) => {
|
const createGnosisSafeContract = (web3: any) => {
|
||||||
if (signaturesViaMetamask()) {
|
|
||||||
const gnosisSafe = contract(GnosisPersonalSafeSol)
|
|
||||||
gnosisSafe.setProvider(web3.currentProvider)
|
|
||||||
|
|
||||||
return gnosisSafe
|
|
||||||
}
|
|
||||||
|
|
||||||
const gnosisSafe = contract(GnosisSafeSol)
|
const gnosisSafe = contract(GnosisSafeSol)
|
||||||
gnosisSafe.setProvider(web3.currentProvider)
|
gnosisSafe.setProvider(web3.currentProvider)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue