encodeModuleUninstallationData
Encodes the deInitData for a module uninstallation.
Usage
const deInitData = encodeModuleUninstallationData({
  client: getClient({
    rpcUrl: "https://sepolia.drpc.org",
  })
      account: getAccount({
        address: safeAccount.address,
        type: "safe",
      }),
      module: getDeadmanSwitch({
        account,
        client,
        nominee: nominee.address,
        timeout: 1,
        moduleType: "validator",
      }),});Parameters
client
- Type: PublicClient
The rpc client to use for the chain you want to get modules from.
account
- Type: Account
The account object.
module
- Type: Module
The module object.
Returns
- Type: Hex(opens in a new tab)
The encoded module uninstallation data.