aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-10-20 00:57:11 +0800
committerEsteban MIno <efmino@uc.cl>2018-10-20 00:57:11 +0800
commit75661673e5b2573ee9ab3a378130e4383c4c034f (patch)
treee99b18cf0804aabd0fe96807cd680c3ba186a37b /app/scripts/controllers
parentea214945cf88cef457147bd33a3017c8ea97956a (diff)
downloadtangerine-wallet-browser-75661673e5b2573ee9ab3a378130e4383c4c034f.tar
tangerine-wallet-browser-75661673e5b2573ee9ab3a378130e4383c4c034f.tar.gz
tangerine-wallet-browser-75661673e5b2573ee9ab3a378130e4383c4c034f.tar.bz2
tangerine-wallet-browser-75661673e5b2573ee9ab3a378130e4383c4c034f.tar.lz
tangerine-wallet-browser-75661673e5b2573ee9ab3a378130e4383c4c034f.tar.xz
tangerine-wallet-browser-75661673e5b2573ee9ab3a378130e4383c4c034f.tar.zst
tangerine-wallet-browser-75661673e5b2573ee9ab3a378130e4383c4c034f.zip
add support for wallet_watchAsset
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r--app/scripts/controllers/preferences.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js
index 8eb2bce0c..16620ca96 100644
--- a/app/scripts/controllers/preferences.js
+++ b/app/scripts/controllers/preferences.js
@@ -104,7 +104,7 @@ class PreferencesController {
* @param {Function} - end
*/
async requestWatchAsset (req, res, next, end) {
- if (req.method === 'metamask_watchAsset') {
+ if (req.method === 'metamask_watchAsset' || req.method === 'wallet_watchAsset') {
const { type, options } = req.params
switch (type) {
case 'ERC20':