瀏覽代碼

ownable: add a notice on renounceOwnership (#937)

* ownable: add a notice on renounceOwnership

* Apply the suggestion by @shrugs
Leo Arias 7 年之前
父節點
當前提交
72792a724d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      contracts/ownership/Ownable.sol

+ 3 - 0
contracts/ownership/Ownable.sol

@@ -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);