-
Notifications
You must be signed in to change notification settings - Fork 92
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
Feature: ERC721 NFT Contract #250
base: dev
Are you sure you want to change the base?
Conversation
@0xNeshi The repository has been upgraded to a new site generator and the Markdown format to include code listings is slightly different. The CONTRIBUTING guidelines has been updated to reflect these changes. |
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.
LGTM, a few small changes to follow the IERC721 as much as possible!
src/applications/erc721.md
Outdated
{{#include ../../listings/applications/721/src/erc721.cairo}} | ||
``` | ||
|
||
There are other implementations, such as the [Open Zeppelin](https://docs.openzeppelin.com/contracts-cairo/0.7.0/erc721) one. |
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.
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.
Updated to 0.20.0 as the most recent one, see https://docs.openzeppelin.com/contracts-cairo/0.20.0/erc721
Updated the link for erc20 too, see 4e9607c
src/applications/erc721.md
Outdated
@@ -0,0 +1,19 @@ | |||
# ERC721 Token | |||
|
|||
Contracts that follow the [ERC721 Standard](https://eips.ethereum.org/EIPS/eip-721) are called ERC721 tokens. They are used to represent non-fungible assets. |
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.
Add a small comment to recommend reader to actually click and read the EIP to learn about all the erc721 interface specifications
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.
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.
Would be nice to also add the optional ERC721Metadata
an ERC721Enumerable
interfaces
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.
Only the interfaces, no implementation?
Thanks for the review! |
@julio4 addressed all the comments and redeployed the contract (updated the link in the PR description). |
Issue(s): Close #197
Description
Implement a simple ERC721 contract inspired by OZ's implementation.
Note: should replace non-maintained PR #214
Checklist
./scripts/cairo_programs_verifier.sh
successfully