mirror of
https://github.com/autistic-symposium/blockchains-security-toolkit.git
synced 2025-05-13 12:12:19 -04:00
add info on safemath
This commit is contained in:
parent
fb9b7c3bb7
commit
d85f813a9d
1 changed files with 4 additions and 2 deletions
|
@ -2,5 +2,7 @@
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
* solidity < 0.8: integers in overflow / underflow without any errors.
|
* defaults:
|
||||||
* solidity >= 0.8: default behaviour of for overflow / underflow is to throw an error.
|
* solidity < 0.8: integers in overflow / underflow without any errors.
|
||||||
|
* solidity >= 0.8: default behaviour of for overflow / underflow is to throw an error.
|
||||||
|
* use **[SafeMath](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol)** to prevent arithmetic overflow and underflow.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue