1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

watchToken to watchAsset

This commit is contained in:
Esteban MIno 2018-08-14 20:09:56 -03:00
parent a4c3f6b65c
commit a4b6b2357a

View File

@ -77,7 +77,7 @@ class PreferencesController {
* @param {Function} - end
*/
requestAddToken (req, res, next, end) {
if (req.method === 'metamask_watchToken') {
if (req.method === 'metamask_watchAsset') {
const [ rawAddress, symbol, decimals, imageUrl ] = req.params
this._validateSuggestedTokenParams({ rawAddress, symbol, decimals })
const tokenOpts = {