Adminable
Inherits: IAdminable
See the documentation in IAdminable.
State Variables
admin
The address of the admin account or contract.
address public override admin;
Functions
onlyAdmin
Reverts if called by any account other than the admin.
modifier onlyAdmin();
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.
function transferAdmin(address newAdmin) public virtual override onlyAdmin;
Parameters
Name | Type | Description |
---|---|---|
newAdmin | address | The address of the new admin. |