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

feature/default_network_editable
Alex Donesky 3 years ago committed by GitHub
parent 1da7beed13
commit 1117e7b1fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/scripts/controllers/preferences.js

@ -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);

Loading…
Cancel
Save