-
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
Add missing docstrings #5168
Add missing docstrings #5168
Conversation
|
/** | ||
* @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call | ||
* encoded in `data`. | ||
* | ||
* See {{UUPSUpgradeable-upgradeToAndCall}} | ||
*/ |
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'd reconsider adding this. The interface is not available in the documentation and we kept it here since we didn't want it to be extensively documented. The upgradeToAndCall
is already documented in the ERC1967Utils
and I'm not sure how to make this available in the docs
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.
Not a big deal, I'm leaving it open and merging
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 tend to agree. Should we remove that natspec comment and replace it with a non natspec that says "see UUPSUpgradeable" ?
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.
And leave it with triple dashes e.g. ///
? I'd agree.
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.
it would be double dash (not natspec)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Ernesto García <ernestognw@gmail.com> Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Fixes L-02
Fixes L-05
PR Checklist
npx changeset add
)