Tooling
Module SDK
Modules
getRemoveHookAction

⚠️ Deprecation Notice

ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.

Rhinestone SDK Documentation (opens in a new tab)

getRemoveHookAction

Get the action to remove a hook from the multi-plexer.

Usage

const action = getRemoveHookAction({
  hook: '0x123...',
  hookType: HookType.GLOBAL,
})

Parameters

hook

The address of the hook to remove.

hookType

The type of the hook to remove.

sig (optional)

The function signature in the case that the hookType is HookType.SIG or HookType.TARGET.

Returns

action

The action to remove the given hook.