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

SafeMath not needed since Solidity 0.8.0? #13

Open
aspiers opened this issue Apr 4, 2021 · 1 comment
Open

SafeMath not needed since Solidity 0.8.0? #13

aspiers opened this issue Apr 4, 2021 · 1 comment

Comments

@aspiers
Copy link

aspiers commented Apr 4, 2021

https://docs.soliditylang.org/en/latest/080-breaking-changes.html says:

Arithmetic operations revert on underflow and overflow. You can use unchecked { ... } to use the previous wrapping behaviour.

However OpenZeppelin are keeping it for reasons explained here:

OpenZeppelin/openzeppelin-contracts#2465

It would be helpful to update this blog to reflect that.

@AgeManning
Copy link
Member

Yep, thanks for pointing this out. Its on our to-do list to update the entire list based on latest solidity.

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

No branches or pull requests

2 participants