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

Add ERC1155 Hooks #982

Merged

Conversation

ericnordelo
Copy link
Member

Partially fixes #965

PR Checklist

  • Tests
  • Documentation
  • Added entry to CHANGELOG.md
  • Tried the feature on a public network

@ericnordelo ericnordelo changed the title Add Hooks to ERC1155Component Add ERC1155 Hooks Apr 30, 2024
Copy link
Collaborator

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

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

Looks good to go! I left some minor doc feedback

Comment on lines +246 to +247
using ERC1155Component is expected to provide an implementation of the ERC1155HooksTrait. For basic token contracts, an
empty implementation with no logic must be provided.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we highlight ERC1155Component and/or ERC1155HooksTrait or do you think they're good as is?

Copy link
Member Author

Choose a reason for hiding this comment

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

We might add a link to the ERC1155HooksTrait, but since we don't have a doc entry for it, I don't think it is worth it.

I created a page in notion for style guidelines for as to start adding an following the rules in there, and I added rule No. 1 for doc-site being module names shouldn't be coded unless the are code units (e. g. use clauses).

src/token/erc20/erc20.cairo Outdated Show resolved Hide resolved
Co-authored-by: Andrew Fleming <fleming.andrew@protonmail.com>
@ericnordelo ericnordelo merged commit a0899b0 into OpenZeppelin:main May 13, 2024
6 checks passed
@ericnordelo ericnordelo deleted the feat/add-erc1155-hooks-#965 branch May 13, 2024 10:35
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.

Add Hooks to ERC721 and ERC1155
2 participants