diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-05-23 03:53:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-23 03:53:59 +0800 |
commit | b5bbfd32648a7deb0fd8b25c12825697e522adf6 (patch) | |
tree | dab36d56c4eaf230512b7430ddb3baf75356eab0 /ui/app/reducers | |
parent | a8e0d38cfbb1c01705b56288511c2a8ce392e25d (diff) | |
parent | 8245bf010e22dda3e00c044429e3f5b880691fcb (diff) | |
download | tangerine-wallet-browser-b5bbfd32648a7deb0fd8b25c12825697e522adf6.tar tangerine-wallet-browser-b5bbfd32648a7deb0fd8b25c12825697e522adf6.tar.gz tangerine-wallet-browser-b5bbfd32648a7deb0fd8b25c12825697e522adf6.tar.bz2 tangerine-wallet-browser-b5bbfd32648a7deb0fd8b25c12825697e522adf6.tar.lz tangerine-wallet-browser-b5bbfd32648a7deb0fd8b25c12825697e522adf6.tar.xz tangerine-wallet-browser-b5bbfd32648a7deb0fd8b25c12825697e522adf6.tar.zst tangerine-wallet-browser-b5bbfd32648a7deb0fd8b25c12825697e522adf6.zip |
Merge pull request #4308 from MetaMask/i4232-addtoken
Update designs for Add Token screen
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/metamask.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js index 9afaf6a50..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, @@ -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 |