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

Use unchecked in ERC20Votes and fix typo #3748

Merged
merged 7 commits into from
Oct 17, 2022
Merged

Conversation

z0r0z
Copy link
Contributor

@z0r0z z0r0z commented Oct 4, 2022

✍️ minor typo fix in comments

🧮 use unchecked {} for simple arithmetic where underflow check is obvious in preceding statement

Fixes #????

PR Checklist

  • Tests
  • Documentation
  • Changelog entry

✍️ minor typo fix in comments

🧮 use unchecked {} for simple arithmetic where underflow is obvious in preceding statement
✍️ typo fix
@frangio frangio changed the title ⚡ ERC20Votes typo fix and gas golf Use unchecked in ERC20Votes and fix typo Oct 5, 2022
@frangio frangio marked this pull request as ready for review October 5, 2022 20:25
@frangio
Copy link
Contributor

frangio commented Oct 5, 2022

I think this is ok. Just wish there was a more localized way to use unchecked in _writeCheckpoint.

@frangio frangio requested a review from Amxx October 5, 2022 20:48
Amxx
Amxx previously approved these changes Oct 17, 2022
@Amxx Amxx merged commit 02722fc into OpenZeppelin:master Oct 17, 2022
@gitpoap-bot
Copy link

gitpoap-bot bot commented Oct 17, 2022

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2022 OpenZeppelin Contracts Contributor:

GitPOAP: 2022 OpenZeppelin Contracts Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

JulissaDantes pushed a commit to JulissaDantes/openzeppelin-contracts that referenced this pull request Nov 3, 2022
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Co-authored-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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants