Skip to content

InitializationContext

InitializationContext

ContractIsAlreadyInitialized

error ContractIsAlreadyInitialized()

Thrown upon attempt to initialize a contract again.

ContractIsNotInitializing

error ContractIsNotInitializing()

Thrown when a function is invoked outside of initialization transaction.

_INITIALIZED_SLOT

bytes32 _INITIALIZED_SLOT

Indicates that the contract has been initialized.

_INITIALIZING_SLOT

bytes32 _INITIALIZING_SLOT

Indicates that the contract is in the process of being initialized.

warperInitializer

modifier warperInitializer()

Modifier to protect an initializer function from being invoked twice.

onlyInitializingWarper

modifier onlyInitializingWarper()

Modifier to protect an initialization function so that it can only be invoked by functions with the {initializer} modifier, directly or indirectly.

_isConstructor

function _isConstructor() internal view returns (bool)