-
Notifications
You must be signed in to change notification settings - Fork 358
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
Use of namespaces for ERC721 & ERC721Enumerable #296
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.
This looks great! I left a couple of comments :)
@@ -209,17 +192,17 @@ func safeMint{ | |||
data: felt* | |||
): | |||
Ownable_only_owner() | |||
ERC721_safeMint(to, tokenId, data_len, data) | |||
ERC721._safe_mint(to, tokenId, data_len, data) |
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.
This tokenId, data_len
bit is the most annoying code in the library. It's the next thing to tackle.
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.
Please check the merge conflicts and update the docs with the new scoping!
@martriay Is that good ? |
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 we're still missing the API part of the docs, since the library methods are now snake_case, and probably a comment about the need to camelCase methods when exposing them.
Co-authored-by: Martín Triay <martriay@gmail.com>
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.
Excellent improvements! I left a minor comment; otherwise, I think this is ready to go!
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.
Great work! 🎉🎉
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.
@Amxx I take it back! 😅 I'm so sorry, I'm just catching this now: I'm thinking we should move the internal library functions (private in Solidity) outside of the namespace to protect them . What do you think?
Yes, that sounds like the right way |
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.
Great work, sir :)
No description provided.