Skip to content

Commit

Permalink
ownable: add a notice on renounceOwnership (OpenZeppelin#937)
Browse files Browse the repository at this point in the history
* ownable: add a notice on renounceOwnership

* Apply the suggestion by @shrugs
  • Loading branch information
Leo Arias authored and frangio committed Jun 10, 2018
1 parent b0292cf commit 72792a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/ownership/Ownable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 72792a7

Please sign in to comment.