-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved ERC721 granularity #1304
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but please update for new underscore convention for variables. #1282
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension | ||
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md | ||
*/ | ||
contract IERC721Enumerable is IERC721Basic { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to make this an interface
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interfaces cannot inherit, sadly.
contracts/token/ERC721/ERC721.sol
Outdated
// register the supported interfaces to conform to ERC721 via ERC165 | ||
_registerInterface(InterfaceId_ERC721Enumerable); | ||
_registerInterface(InterfaceId_ERC721Metadata); | ||
contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add is IERC721
also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nventuro!
ERC721 is the basic contract
Enumerable and Metadata are extensions
Full has both extensions