Merge pull request #505 from ZumZoom/patch-1

Finish minting should be called only once
This commit is contained in:
Facundo Spagnuolo
2017-11-15 11:59:05 -03:00
committed by GitHub

View File

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