Browse Source

Finish minting should me called only once

Multiple calls to `finishMinting` will emit multiple `MintFinished` events which may be surprising if one rely on `MintFinished` event.
Mikhail Melnik 8 years ago
parent
commit
2d83c557b1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contracts/token/MintableToken.sol

+ 1 - 1
contracts/token/MintableToken.sol

@@ -43,7 +43,7 @@ contract MintableToken is StandardToken, Ownable {
    * @dev Function to stop minting new tokens.
    * @return True if the operation was successful.
    */
-  function finishMinting() onlyOwner public returns (bool) {
+  function finishMinting() onlyOwner canMint public returns (bool) {
     mintingFinished = true;
     MintFinished();
     return true;