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:
parent
1da7beed13
commit
1117e7b1fe
@ -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…
x
Reference in New Issue
Block a user