Jelajahi Sumber

ownable: add a notice on renounceOwnership (#937)

* ownable: add a notice on renounceOwnership

* Apply the suggestion by @shrugs
Leo Arias 7 tahun lalu
induk
melakukan
72792a724d
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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);