⚠️ Deprecation Notice
ModuleKit was developed by Rhinestone and is no longer actively supported. If you're building modules and need assistance, reach out to Rhinestone at gm@rhinestone.dev
title: "isModuleInstalled"
Check if a module is installed.
Usage
bool isModuleInstalled = instance.isModuleInstalled({moduleTypeId: MODULE_TYPE_VALIDATOR, module: validator});Parameters
instance
- Type:
AccountInstance
The instance of the account used for testing.
moduleTypeId
- Type:
uint256
The type of the module to check if it is installed.
module
- Type:
address
The address of the module to check if it is installed.
data (optional)
- Type:
bytes
The additional context that may be required to check if a module is installed.
Returns
isModuleInstalled
- Type:
bool
Is true if the module is installed, false otherwise.