This commit is contained in:
parent
3164d7882c
commit
2e157cc307
@ -54,7 +54,7 @@ Call ``rollback()`` to revert a function implementation to a prior version in it
|
|||||||
|
|
||||||
Ownership
|
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
|
.. code-block:: solidity
|
||||||
|
|
||||||
@ -63,8 +63,9 @@ Another Feature, ``InitialMigration``, bootstraps into the proxy is the Ownable
|
|||||||
external
|
external
|
||||||
onlyOwner;
|
onlyOwner;
|
||||||
|
|
||||||
// Get the owner of this contract.
|
/// @dev Get the owner of this contract.
|
||||||
function getOwner()
|
/// @return owner_ The owner of this contract.
|
||||||
|
function owner()
|
||||||
external
|
external
|
||||||
view
|
view
|
||||||
returns (address owner_);
|
returns (address owner_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user