AccessManagerInit
Title: AccessManagerInit
Author: David Dada <daveproxy80@gmail.com> (https://github.com/dadadave80)
One-shot initializer for an AccessManager authority diamond — grants the initial ADMIN_ROLE to
admin and registers the IAccessManager interface (ERC-165). Delegatecalled by Diamond.initialize
inside the initializing window (so it must NOT open its own pre/postInitializer; the
__AccessManager_init guard passes because the window is already open). Reverts with
AccessManagerInvalidInitialAdmin if admin is the zero address.
Functions
init
Seeds the AccessManager module. MUST be invoked via the diamond's initialize _init delegatecall.
function init(address admin) external;Parameters
| Name | Type | Description |
|---|---|---|
| admin | address | The address granted the initial ADMIN_ROLE. |