It seems like there are going to be a lot of people that forget to check for integer overflows in Solidity.
I am wondering if there is a reason why Solidity doesn't throw errors for integer overflows like Python or most other programming languages?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
The link that Shawn Tabrizi posted may provide the reason why Solidity itself doesn't throw errors for integer overflow. However, there are helpful developer tools that can help mitigate these errors. When deploying a contract I'll usually upload my abi to Amberdata.io which runs automated security audits. For instance, with the 0x Protocol contract it shows some integer overflows in their code.
Hope that help! 😊