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

[Feature]: ERC721RoyaltyExtension #508

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

18aaddy
Copy link

@18aaddy 18aaddy commented Jan 23, 2025

Resolves #358

PR Checklist

  • Tests
  • Documentation
  • Changelog

Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for contracts-stylus canceled.

Name Link
🔨 Latest commit b2be2b1
🔍 Latest deploy log https://app.netlify.com/sites/contracts-stylus/deploys/67a0999f867d9b0008b07226

@18aaddy
Copy link
Author

18aaddy commented Jan 23, 2025

@0xNeshi In the OpenZeppelin Solidity Contracts codebase, ERC-2981 functions were implemented separately under Contracts/Token/Common/ERC2981.sol.
I have implemented the ERC-2981 functions in the ERC Royalty Extension file only as there was no separate file for ERC-2981. Is this fine?

@0xNeshi
Copy link
Collaborator

0xNeshi commented Jan 23, 2025

@0xNeshi In the OpenZeppelin Solidity Contracts codebase, ERC-2981 functions were implemented separately under Contracts/Token/Common/ERC2981.sol. I have implemented the ERC-2981 functions in the ERC Royalty Extension file only as there was no separate file for ERC-2981. Is this fine?

Good catch! You can continue working the way you started, I think it will be easy to move the contract file if necessary.
Will get back to you on this

@18aaddy 18aaddy marked this pull request as ready for review February 2, 2025 11:35
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

Attention: Patch coverage is 97.39130% with 6 lines in your changes missing coverage. Please review.

Project coverage is 84.4%. Comparing base (7c08479) to head (b2be2b1).

Files with missing lines Patch % Lines
contracts/src/token/erc721/extensions/royalty.rs 97.3% 6 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
contracts/src/token/erc721/extensions/royalty.rs 97.3% <97.3%> (ø)

Copy link
Collaborator

@0xNeshi 0xNeshi left a comment

Choose a reason for hiding this comment

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

Many missing changes/tests/docs. See examples of other extension PRs for inspiration on what needs to be added, e.g. Erc1155Burnable

@18aaddy
Copy link
Author

18aaddy commented Feb 8, 2025

Ok I'll check it out and fix it

@18aaddy
Copy link
Author

18aaddy commented Feb 10, 2025

Many missing changes/tests/docs. See examples of other extension PRs for inspiration on what needs to be added, e.g. Erc1155Burnable

@0xNeshi Should I fix this PR or wait?

Good catch! You can continue working the way you started, I think it will be easy to move the contract file if necessary.
Will get back to you on this

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.

[Feature]: ERC721Royalty extension
3 participants