ModuleKit
Building
Hooks
onExecuteBatchFromExecutor

onExecuteBatchFromExecutor

A virtual function called when a batch of executions occurs on the account from an executor. Overwrites from ERC7579HookDestruct.

Usage

function onExecuteBatchFromExecutor(
    address account,
    address msgSender,
    Execution[] calldata executions
)
    internal
    virtual
    override
    returns (bytes memory hookData)
{
    return abi.encode("success");
}

Parameters

account

  • Type: address

The address of the account that the execution is called on.

msgSender

  • Type: address

The address of the executor that called the account.

executions

Returns

hookData

  • Type: bytes

The data sent to the postHook function.