Update docs for Ownable2Step (#4721)
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
This commit is contained in:
@ -10,6 +10,12 @@ import {Ownable} from "./Ownable.sol";
|
||||
* there is an account (an owner) that can be granted exclusive access to
|
||||
* specific functions.
|
||||
*
|
||||
* This extension of the {Ownable} contract includes a two-step mechanism to transfer
|
||||
* ownership, where the new owner must call {acceptOwnership} in order to replace the
|
||||
* old one. This can help prevent common mistakes, such as transfers of ownership to
|
||||
* incorrect accounts, or to contracts that are unable to interact with the
|
||||
* permission system.
|
||||
*
|
||||
* The initial owner is specified at deployment time in the constructor for `Ownable`. This
|
||||
* can later be changed with {transferOwnership} and {acceptOwnership}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user