aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-05-23 03:53:59 +0800
committerGitHub <noreply@github.com>2018-05-23 03:53:59 +0800
commitb5bbfd32648a7deb0fd8b25c12825697e522adf6 (patch)
treedab36d56c4eaf230512b7430ddb3baf75356eab0 /ui/app/reducers
parenta8e0d38cfbb1c01705b56288511c2a8ce392e25d (diff)
parent8245bf010e22dda3e00c044429e3f5b880691fcb (diff)
downloadtangerine-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.js12
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