diff options
author | frankiebee <frankie.diamond@gmail.com> | 2018-05-23 07:45:20 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2018-05-23 07:45:20 +0800 |
commit | 61caee9d944615a48c43e4eb66b204c1e8b9ae6d (patch) | |
tree | 1ac62947cd2a740bbf63b8a045ff82e4deeeb250 /ui/app/reducers/metamask.js | |
parent | c4b09da34e9950ea485dfecb810726e49b683dcd (diff) | |
parent | 145016be4c681b725d3450f59cb2892f0ec6d993 (diff) | |
download | tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar.gz tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar.bz2 tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar.lz tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar.xz tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.tar.zst tangerine-wallet-browser-61caee9d944615a48c43e4eb66b204c1e8b9ae6d.zip |
Merge branch 'network-remove-provider-engine' of https://github.com/MetaMask/metamask-extension into transactions-use-new-block-tracker
Diffstat (limited to 'ui/app/reducers/metamask.js')
-rw-r--r-- | ui/app/reducers/metamask.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js index bb35cf990..732fa6dea 100644 --- a/ui/app/reducers/metamask.js +++ b/ui/app/reducers/metamask.js @@ -28,6 +28,7 @@ function reduceMetamask (state, action) { contractExchangeRates: {}, tokenExchangeRates: {}, tokens: [], + pendingTokens: {}, send: { gasLimit: null, gasPrice: null, @@ -163,7 +164,7 @@ function reduceMetamask (state, action) { selectedTokenAddress: action.value, }) - case actions.SAVE_ACCOUNT_LABEL: + case actions.SET_ACCOUNT_LABEL: const account = action.value.account const name = action.value.label const id = {} @@ -356,6 +357,17 @@ function reduceMetamask (state, action) { currentLocale: action.value, }) + case actions.SET_PENDING_TOKENS: + return extend(metamaskState, { + pendingTokens: { ...action.payload }, + }) + + case actions.CLEAR_PENDING_TOKENS: { + return extend(metamaskState, { + pendingTokens: {}, + }) + } + default: return metamaskState |