From 1117e7b1feedcb78bddca5175c9da9d02df18e6d Mon Sep 17 00:00:00 2001 From: Alex Donesky Date: Mon, 12 Jul 2021 11:55:48 -0500 Subject: [PATCH] use ERC721 interface id instead of ERC721 metadata interface ID for identifying ERC721 tokens (#11495) --- app/scripts/controllers/preferences.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js index 298272968..ddb14755a 100644 --- a/app/scripts/controllers/preferences.js +++ b/app/scripts/controllers/preferences.js @@ -15,7 +15,7 @@ import { } from '../../../shared/modules/hexstring-utils'; import { NETWORK_EVENTS } from './network'; -const ERC721METADATA_INTERFACE_ID = '0x5b5e139f'; +const ERC721_INTERFACE_ID = '0x80ac58cd'; export default class PreferencesController { /** @@ -803,7 +803,7 @@ export default class PreferencesController { ); return await tokenContract - .supportsInterface(ERC721METADATA_INTERFACE_ID) + .supportsInterface(ERC721_INTERFACE_ID) .catch((error) => { console.log('error', error); log.debug(error);