IInitializable

Git Source

Functions

initialize

Initializes the contract with respect to the implementation.

function initialize(address implementation_, bytes calldata initializeCallData_) external;

Parameters

NameTypeDescription
implementation_addressThe address of the implementation.
initializeCallData_bytesThe data to initialize the proxy with, with respect to the implementation.

Errors

ZeroImplementation

Thrown when the implementation address is zero (i.e. address(0)).

error ZeroImplementation();

InitializationFailed

Thrown when the initialization fails.

error InitializationFailed(bytes errorData);

EmptyCode

Thrown when the implementation code is empty.

error EmptyCode(address implementation);