Skip to content
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

Merged
merged 2 commits into from
Oct 8, 2018

Conversation

nachomazzara
Copy link
Contributor

@nachomazzara nachomazzara commented Oct 2, 2018

Copy link
Member

@eordano eordano left a 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0x80ac58cd

Copy link
Contributor Author

@nachomazzara nachomazzara Oct 2, 2018

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

Copy link

@nicosantangelo nicosantangelo Oct 4, 2018

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.

@eordano @nachomazzara

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree

@abarmat abarmat merged commit 14b0ddc into master Oct 8, 2018
@abarmat abarmat deleted the fix/support-erc721-interface-standard branch October 8, 2018 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants