소스 검색

Merge pull request #597 from JesseBusman/master

There's no need to throw when burning 0 tokens
Francisco Giordano 7 년 전
부모
커밋
306132f823
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      contracts/token/BurnableToken.sol

+ 0 - 1
contracts/token/BurnableToken.sol

@@ -15,7 +15,6 @@ contract BurnableToken is StandardToken {
      * @param _value The amount of token to be burned.
      */
     function burn(uint256 _value) public {
-        require(_value > 0);
         require(_value <= balances[msg.sender]);
         // no need to require value <= totalSupply, since that would imply the
         // sender's balance is greater than the totalSupply, which *should* be an assertion failure