onInstallModule
A virtual function called when a module is installed on the account. Overwrites from ERC7579HookDestruct
.
Usage
Parameters
account
- Type:
address
The address of the account that the module is installed on.
msgSender
- Type:
address
The address of the caller to the account.
moduleType
- Type:
uint256
The type of the module that is installed.
module
- Type:
address
The address of the module that is installed.
initData
- Type:
bytes
The data of the module installation.
Returns
hookData
- Type:
bytes
The data sent to the postHook
function.