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 missing docstrings #5168

Merged
merged 3 commits into from
Aug 29, 2024
Merged

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Aug 29, 2024

Fixes L-02
Fixes L-05

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

@Amxx Amxx added this to the 5.1-after-freeze milestone Aug 29, 2024
Copy link

changeset-bot bot commented Aug 29, 2024

⚠️ No Changeset found

Latest commit: ec479ca

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Amxx Amxx requested a review from ernestognw August 29, 2024 13:05
Comment on lines 18 to 23
/**
* @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
* encoded in `data`.
*
* See {{UUPSUpgradeable-upgradeToAndCall}}
*/
Copy link
Member

@ernestognw ernestognw Aug 29, 2024

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

Copy link
Member

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

Copy link
Collaborator Author

@Amxx Amxx Aug 29, 2024

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" ?

Copy link
Member

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.

Copy link
Collaborator Author

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)

@ernestognw ernestognw merged commit 48c67c7 into OpenZeppelin:master Aug 29, 2024
19 checks passed
ernestognw added a commit to Amxx/openzeppelin-contracts that referenced this pull request Aug 30, 2024
Co-authored-by: Ernesto García <ernestognw@gmail.com>
@Amxx Amxx deleted the 5_1_audit/L_02-docstrings branch August 30, 2024 11:37
@Amxx Amxx restored the 5_1_audit/L_02-docstrings branch August 30, 2024 11:40
Amxx added a commit that referenced this pull request Oct 2, 2024
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants