⚠️ 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: "exec"
Execute a UserOperation on the account.
Usage
instance.exec({ target: target, value: value, callData: callData });Parameters
instance
- Type:
AccountInstance
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
- Type:
UserOpData
The data of the UserOperation.