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

use ERC721 interface id instead of ERC721 metadata interface ID for identifying ERC721 tokens (#11495)

This commit is contained in:
Alex Donesky 2021-07-12 11:55:48 -05:00 committed by GitHub
parent 1da7beed13
commit 1117e7b1fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ import {
} from '../../../shared/modules/hexstring-utils'; } from '../../../shared/modules/hexstring-utils';
import { NETWORK_EVENTS } from './network'; import { NETWORK_EVENTS } from './network';
const ERC721METADATA_INTERFACE_ID = '0x5b5e139f'; const ERC721_INTERFACE_ID = '0x80ac58cd';
export default class PreferencesController { export default class PreferencesController {
/** /**
@ -803,7 +803,7 @@ export default class PreferencesController {
); );
return await tokenContract return await tokenContract
.supportsInterface(ERC721METADATA_INTERFACE_ID) .supportsInterface(ERC721_INTERFACE_ID)
.catch((error) => { .catch((error) => {
console.log('error', error); console.log('error', error);
log.debug(error); log.debug(error);