diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-03-08 02:25:50 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-03-08 02:25:50 +0800 |
commit | 2a98beb87877619ad123281facab3e22dec64fab (patch) | |
tree | dd9b41ec95d7cf96a1cb448d4c11940927d9f46e /ui/app/reducers | |
parent | e66035254f1778ec8e614cabecaf1a9493509888 (diff) | |
download | tangerine-wallet-browser-2a98beb87877619ad123281facab3e22dec64fab.tar tangerine-wallet-browser-2a98beb87877619ad123281facab3e22dec64fab.tar.gz tangerine-wallet-browser-2a98beb87877619ad123281facab3e22dec64fab.tar.bz2 tangerine-wallet-browser-2a98beb87877619ad123281facab3e22dec64fab.tar.lz tangerine-wallet-browser-2a98beb87877619ad123281facab3e22dec64fab.tar.xz tangerine-wallet-browser-2a98beb87877619ad123281facab3e22dec64fab.tar.zst tangerine-wallet-browser-2a98beb87877619ad123281facab3e22dec64fab.zip |
Break out rpc update and rpclist into two reducers.
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/metamask.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js index 7bf2969e7..c09556c91 100644 --- a/ui/app/reducers/metamask.js +++ b/ui/app/reducers/metamask.js @@ -53,12 +53,16 @@ function reduceMetamask (state, action) { isUnlocked: false, }) + case actions.SET_RPC_LIST: + return extend(metamaskState, { + frequentRpcList: action.value, + }) + case actions.SET_RPC_TARGET: return extend(metamaskState, { - frequentRpcList: action.value.frequentRpcList, provider: { type: 'rpc', - rpcTarget: action.value.rpcTarget, + rpcTarget: action.value, }, }) |