Elena 2022-12-26 10:34:18 +02:00 committed by GitHub
parent 3164d7882c
commit 2e157cc307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ Call ``rollback()`` to revert a function implementation to a prior version in it
Ownership
=========
Another Feature, ``InitialMigration``, bootstraps into the proxy is the Ownable feature. This exposes ownership management functions: ``transferOwnership()`` and ``getOwner()``. This feature also enables ubiquitous modifiers such as onlyOwner, so it is an implicit dependency of nearly every other feature.
Another Feature, ``InitialMigration``, bootstraps into the proxy is the Ownable feature. This exposes ownership management functions: ``transferOwnership()`` and ``owner()``. This feature also enables ubiquitous modifiers such as onlyOwner, so it is an implicit dependency of nearly every other feature.
.. code-block:: solidity
@ -63,8 +63,9 @@ Another Feature, ``InitialMigration``, bootstraps into the proxy is the Ownable
external
onlyOwner;
// Get the owner of this contract.
function getOwner()
/// @dev Get the owner of this contract.
/// @return owner_ The owner of this contract.
function owner()
external
view
returns (address owner_);