aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers/metamask.js
diff options
context:
space:
mode:
authorEsteban MiƱo <efmino@uc.cl>2019-01-23 02:22:56 +0800
committerDan Finlay <542863+danfinlay@users.noreply.github.com>2019-01-23 02:22:56 +0800
commite21dfd18622dd7f70dac51855a0052a56fb74e57 (patch)
tree03fe6571c87474c15af266fa0e3bc9c1a755c450 /ui/app/reducers/metamask.js
parentfe780fb3d457dd22be84cf7ef386327ba9a2ec93 (diff)
downloadtangerine-wallet-browser-e21dfd18622dd7f70dac51855a0052a56fb74e57.tar
tangerine-wallet-browser-e21dfd18622dd7f70dac51855a0052a56fb74e57.tar.gz
tangerine-wallet-browser-e21dfd18622dd7f70dac51855a0052a56fb74e57.tar.bz2
tangerine-wallet-browser-e21dfd18622dd7f70dac51855a0052a56fb74e57.tar.lz
tangerine-wallet-browser-e21dfd18622dd7f70dac51855a0052a56fb74e57.tar.xz
tangerine-wallet-browser-e21dfd18622dd7f70dac51855a0052a56fb74e57.tar.zst
tangerine-wallet-browser-e21dfd18622dd7f70dac51855a0052a56fb74e57.zip
Use Parity on-chain registry only when is needed (#6052)
* add and use knownMethodData to avoid infura requests * dataMethod to methodData and check empty response
Diffstat (limited to 'ui/app/reducers/metamask.js')
-rw-r--r--ui/app/reducers/metamask.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js
index 302d1627a..97052ab87 100644
--- a/ui/app/reducers/metamask.js
+++ b/ui/app/reducers/metamask.js
@@ -54,6 +54,7 @@ function reduceMetamask (state, action) {
preferences: {
useNativeCurrencyAsPrimaryCurrency: true,
},
+ knownMethodData: {},
}, state.metamask)
switch (action.type) {