Browse Source

ownable: add a notice on renounceOwnership (#937)

* ownable: add a notice on renounceOwnership

* Apply the suggestion by @shrugs
Leo Arias 7 năm trước cách đây
mục cha
commit
72792a724d
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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);