openzeppelin-contracts icon indicating copy to clipboard operation
openzeppelin-contracts copied to clipboard

Use of require in StandardToken.sol not necessary

Open ArchimedusIII opened this issue 8 years ago • 1 comments

When using the SafeMath library, isn't it overkill to use : require(_value <= balances[msg.sender]); in the StandardToken.sol contract?

As SafeMath.sub should be able to throw an error if balance is not enough, this seems redundant to me, or am I missing something?

ArchimedusIII avatar Jan 28 '18 18:01 ArchimedusIII

Oops, this may be more of a Pull request, than an issue.

ArchimedusIII avatar Jan 28 '18 18:01 ArchimedusIII