ModuleKit
Testing
Core
exec

exec

Execute a UserOperation on the account.

Usage

instance.exec({ target: target, value: value, callData: callData });

Parameters

instance

The instance of the account used for testing.

target

  • Type: address

The address of the target contract.

callData

  • Type: bytes

The data to send with the call.

value (optional)

  • Type: uint256

The value to send with the call.

Returns

userOpData

The data of the UserOperation.