mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove unneeded setrpc method.
This commit is contained in:
parent
cf2268c3d2
commit
0ee8ca178e
@ -680,10 +680,8 @@ function setDefaultRpcTarget (rpcList) {
|
||||
console.error(err)
|
||||
return dispatch(self.displayWarning('Had a problem changing networks.'))
|
||||
}
|
||||
dispatch(self.setRpc(result))
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function setRpcTarget (newRpc) {
|
||||
@ -694,18 +692,8 @@ function setRpcTarget (newRpc) {
|
||||
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',
|
||||
}
|
||||
}
|
||||
|
||||
function setProviderType (type) {
|
||||
|
Loading…
Reference in New Issue
Block a user