HashLips / hashlips_nft_contract

A simple NFT smart contract that works with the rest of the HashLips ecosystem.
MIT License
830 stars 675 forks source link

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

Open rubeecube opened 2 years ago

rubeecube commented 2 years ago

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