SafeMath
restores this intuition by reverting the transaction when an+
operator.+
operator.-
operator.-
operator.*
operator.*
operator./
operator. Note: this function uses arevert
opcode (which leaves remaining gas untouched) while Solidity/
operator. Note: this function uses arevert
opcode (which leaves remaining gas untouched) while Solidity%
operator. This function uses a revert
%
operator. This function uses a revert