update method to metamask_watchToken

feature/default_network_editable
Esteban MIno 6 years ago
parent c245405acb
commit 8f5b80a0fe
  1. 2
      app/scripts/controllers/preferences.js

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

Loading…
Cancel
Save