|
|
@ -680,10 +680,8 @@ function setDefaultRpcTarget (rpcList) { |
|
|
|
console.error(err) |
|
|
|
console.error(err) |
|
|
|
return dispatch(self.displayWarning('Had a problem changing networks.')) |
|
|
|
return dispatch(self.displayWarning('Had a problem changing networks.')) |
|
|
|
} |
|
|
|
} |
|
|
|
dispatch(self.setRpc(result)) |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function setRpcTarget (newRpc) { |
|
|
|
function setRpcTarget (newRpc) { |
|
|
@ -694,18 +692,8 @@ function setRpcTarget (newRpc) { |
|
|
|
console.err(err) |
|
|
|
console.err(err) |
|
|
|
return dispatch(self.displayWarning('Had a problem changing networks!')) |
|
|
|
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', |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function setProviderType (type) { |
|
|
|
function setProviderType (type) { |
|
|
|