IInitializable
Functions
initialize
Initializes the contract with respect to the implementation.
function initialize(address implementation_, bytes calldata initializeCallData_) external;
Parameters
| Name | Type | Description |
|---|---|---|
implementation_ | address | The address of the implementation. |
initializeCallData_ | bytes | The 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);