ownable: add a notice on renounceOwnership (#937)

* ownable: add a notice on renounceOwnership

* Apply the suggestion by @shrugs
This commit is contained in:
Leo Arias
2018-06-10 13:39:54 -06:00
committed by Francisco Giordano
parent b0292cf628
commit 72792a724d

View File

@ -35,6 +35,9 @@ contract Ownable {
/**
* @dev Allows the current owner to relinquish control of the contract.
* @notice Renouncing to ownership will leave the contract without an owner.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
*/
function renounceOwnership() public onlyOwner {
emit OwnershipRenounced(owner);