ModuleKit
Testing
Modules
installModule

installModule

Installs a module into the account.

Usage

instance.installModule({
    moduleTypeId: MODULE_TYPE_VALIDATOR,
    module: validator,
    data: validatorData
});

Parameters

instance

The instance of the account used for testing.

moduleTypeId

  • Type: uint256

The type of the module to install.

module

  • Type: address

The address of the module to install.

data

  • Type: bytes

The data to send with the module installation.

Returns

userOpData

The data of the UserOperation.