-
Notifications
You must be signed in to change notification settings - Fork 38
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
fix: support erc721 interface standard #39
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.
comment
ERC821.md
Outdated
@@ -75,7 +75,7 @@ Return the total amount of assets under this DAR. This method SHALL NOT throw. | |||
|
|||
#### `supportsInterface(bytes8 interfaceId):bool` | |||
|
|||
This method returns `true` if the `interfaceId` is a supported interface (165, corresponding to 0x01ffc9a7, or 821, corresponding to 0x959d7abb). This method SHALL NOT throw. | |||
This method returns `true` if the `interfaceId` is a supported interface (165, corresponding to 0x01ffc9a7, or 821, corresponding to 0x7c0633c6). This method SHALL NOT throw. |
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.
0x80ac58cd
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.
@eordano We should update to that ID? our implementation is 0x7c0633c6
cause:
The regular ERC721's selector is `0x80ac58cd` but the Decentraland one is slightly different because `getApprovedAddress` is used instead of `getApproved`
Maybe we should update getApprovedAddress
too
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 think just changing the docs here might do the trick?
This method returns `true` if the `interfaceId` is a supported interface (165, corresponding to 0x01ffc9a7, 821, corresponding to 0x7c0633c6, or 721 corresponding to 0x80ac58cd). This method SHALL NOT throw.
This method returns `true` if the `interfaceId` is a supported interface (165, corresponding to 0x01ffc9a7,
- or 821, corresponding to 0x7c0633c6
+ 821, corresponding to 0x7c0633c6, or 721 corresponding to 0x80ac58cd
). This method SHALL NOT throw.
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.
agree
Support ERC721 standar interface
Close decentraland/marketplace-contracts#24