diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-03-09 01:08:28 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-03-09 01:08:28 +0800 |
commit | 0ee8ca178e9240ab25454bafc88c58ebef6b69c3 (patch) | |
tree | ce7706f91aab140c382fb5e7cffa7536bb794c6e | |
parent | cf2268c3d29d97afa22cd11663bb6e3e74c09b5a (diff) | |
download | tangerine-wallet-browser-0ee8ca178e9240ab25454bafc88c58ebef6b69c3.tar tangerine-wallet-browser-0ee8ca178e9240ab25454bafc88c58ebef6b69c3.tar.gz tangerine-wallet-browser-0ee8ca178e9240ab25454bafc88c58ebef6b69c3.tar.bz2 tangerine-wallet-browser-0ee8ca178e9240ab25454bafc88c58ebef6b69c3.tar.lz tangerine-wallet-browser-0ee8ca178e9240ab25454bafc88c58ebef6b69c3.tar.xz tangerine-wallet-browser-0ee8ca178e9240ab25454bafc88c58ebef6b69c3.tar.zst tangerine-wallet-browser-0ee8ca178e9240ab25454bafc88c58ebef6b69c3.zip |
Remove unneeded setrpc method.
-rw-r--r-- | ui/app/actions.js | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index 062a691e2..82b6fac18 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -680,31 +680,19 @@ function setDefaultRpcTarget (rpcList) { console.error(err) return dispatch(self.displayWarning('Had a problem changing networks.')) } - dispatch(self.setRpc(result)) }) } - } function setRpcTarget (newRpc) { - log.debug(`background.setRpcTarget`) - return (dispatch) => { - background.setCustomRpc(newRpc, (err, result) => { - if (err) { - console.err(err) - return dispatch(self.displayWarning('Had a problem changing networks!')) - } - dispatch(self.setRpc(result)) - }) - } - - -} - -function setRpc (newRpc) { - return { - type: actions.SET_RPC_TARGET, - value: 'http://localhost:8545', + log.debug(`background.setRpcTarget`) + return (dispatch) => { + background.setCustomRpc(newRpc, (err, result) => { + if (err) { + console.err(err) + return dispatch(self.displayWarning('Had a problem changing networks!')) + } + }) } } |