Update comment to reflect code logic in Ownable.sol (#4369)
This commit is contained in:
committed by
GitHub
parent
1e0e4e20bb
commit
a7a94c7746
@ -10,8 +10,8 @@ import "../utils/Context.sol";
|
|||||||
* there is an account (an owner) that can be granted exclusive access to
|
* there is an account (an owner) that can be granted exclusive access to
|
||||||
* specific functions.
|
* specific functions.
|
||||||
*
|
*
|
||||||
* By default, the owner account will be the one that deploys the contract. This
|
* The initial owner is set to the address provided by the deployer. This can
|
||||||
* can later be changed with {transferOwnership}.
|
* later be changed with {transferOwnership}.
|
||||||
*
|
*
|
||||||
* This module is used through inheritance. It will make available the modifier
|
* This module is used through inheritance. It will make available the modifier
|
||||||
* `onlyOwner`, which can be applied to your functions to restrict their use to
|
* `onlyOwner`, which can be applied to your functions to restrict their use to
|
||||||
@ -33,7 +33,7 @@ abstract contract Ownable is Context {
|
|||||||
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
|
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Initializes the contract setting the deployer as the initial owner.
|
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
|
||||||
*/
|
*/
|
||||||
constructor(address initialOwner) {
|
constructor(address initialOwner) {
|
||||||
_transferOwnership(initialOwner);
|
_transferOwnership(initialOwner);
|
||||||
|
|||||||
Reference in New Issue
Block a user