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

Force solidity version > 0.8.0 to protect against under/overflows #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rubeecube
Copy link

Minor modification to prevent under/overflows (in mint function in case the parameters are set badly by an owner).

https://blog.soliditylang.org/2020/12/16/solidity-v0.8.0-release-announcement/ > "The change that will affect most users is that arithmetic operations are now checked by default, which means that overflow and underflow will cause a revert. This feature can be disabled locally by using an unchecked block."

@rubeecube rubeecube changed the title Force solidity verion > 0.8.0 to protect against under/overflows Force solidity version > 0.8.0 to protect against under/overflows Jan 30, 2022
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.

1 participant