Governable

Git Source

Inherits: IGovernable

See the documentation in {IGovernable}.

State Variables

governor

The address of the governor account or contract.

address public override governor;

Functions

onlyGovernor

Reverts if called by any account other than the governor.

modifier onlyGovernor() virtual;

transferGovernor

Transfers the contract governor to a new address.

Notes:

  • Does not revert if the governor is the same.

  • This function can potentially leave the contract without an governor, thereby removing any functionality that is only available to the governor.

Requirements:

  • msg.sender must be the contract governor.

function transferGovernor(address newGovernor) external virtual override onlyGovernor;

Parameters

Last updated