Update comment to reflect code logic in Ownable.sol (#4369)

This commit is contained in:
Sergei Tikhomirov
2023-06-23 00:34:53 +02:00
committed by GitHub
parent 1e0e4e20bb
commit a7a94c7746

View File

@ -10,8 +10,8 @@ import "../utils/Context.sol";
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* 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
@ -33,7 +33,7 @@ abstract contract Ownable is Context {
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) {
_transferOwnership(initialOwner);