aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/app/actions.js28
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!'))
+ }
+ })
}
}