-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
make ERC2981:royaltyInfo public #3305
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.
Looks good!
@Amxx and @JulissaDantes - one thought around this (I was the person who submitted this issue...) |
ERC define interfaces which have the function marked external. Making it public doesn't change the interfaceId or the function selector. You can see that other ERC (20, 721, ...) also define interfaces with external function that end up being implement in a public way. |
(cherry picked from commit d2832ca) Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
@Amxx - I was hoping that was the case; makes sense. |
@@ -1,5 +1,8 @@ | |||
# Changelog | |||
|
|||
## Unreleased | |||
* `ERC2981`: make `royaltiInfo` public to allow super call in overrides. ([#3305](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3305)) |
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.
Nothing major, but royaltiInfo
should be corrected to royaltyInfo
* 4.6.0-rc.0 * Fix release script to only release @OpenZeppelin/contracts (cherry picked from commit 2bd75a4) * make ERC2981:royaltyInfo public (#3305) (cherry picked from commit d2832ca) Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> * add transpilation guards to the crosschain mocks (#3306) (cherry picked from commit 9af5af8) Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> * Fix tests on upgradeable contracts after transpilation (cherry picked from commit 0762479) Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> * Remove unused constructor argument (cherry picked from commit 69c3781) Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> * Bump minimum Solidity version for Initializable.sol to 0.8.2 (#3328) (cherry picked from commit cb14ea3) * Fix update-comment script to ignore invalid tags (cherry picked from commit 848fef5) Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> * 4.6.0 Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Fixes #3304
PR Checklist