diff --git a/src/routes/open/container/old.js b/src/routes/open/container/old.js deleted file mode 100644 index c9ee2147..00000000 --- a/src/routes/open/container/old.js +++ /dev/null @@ -1,45 +0,0 @@ -// @flow - -/* -onAddFunds = async (values: Object) => { - const { fundsToAdd } = values - const { safeAddress } = this.state - try { - const web3 = getWeb3() - const accounts = await promisify(cb => web3.eth.getAccounts(cb)) - const txData = { from: accounts[0], to: safeAddress, value: web3.toWei(fundsToAdd, 'ether') } - await promisify(cb => web3.eth.sendTransaction(txData, cb)) - const funds = await promisify(cb => web3.eth.getBalance(safeAddress, cb)) - const fundsInEther = funds ? web3.fromWei(funds.toNumber(), 'ether') : 0 - this.setState({ funds: fundsInEther }) - } catch (error) { - // eslint-disable-next-line - console.log(`Errog adding funds to safe${error}`) - } - } - - - - {(pristine, invalid) => ( - - Add Funds to the safe -
- -
- { safeAddress && -
- - -
- } - { safeAddress && -
- Total funds in this safe: { funds || 0 } ETH -
- } -
- )} -
-*/