⚠️ 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: "predictModuleAddress"
Predict the address of a module deployed through the registry. Note, that this will only work for modules deployed through the deployModule function and not deployModuleViaFactory.
Usage
address moduleAddress = predictModuleAddress({ salt: salt, initCode: initCode });Parameters
salt
- Type:
bytes32
The salt used to create the module and influence its address.
initCode
- Type:
bytes
The init code of the module.
Returns
moduleAddress
- Type:
address
The address of the module.