Adminable
Inherits: IAdminable
See the documentation in {IAdminable}.
State Variables
admin
The address of the admin account or contract.
Functions
onlyAdmin
Reverts if called by any account other than the admin.
transferAdmin
Transfers the contract admin to a new address.
Notes:
Does not revert if the admin is the same.
This function can potentially leave the contract without an admin, thereby removing any functionality that is only available to the admin. Requirements:
msg.sender
must be the contract admin.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the new admin. |
Last updated