deleteCallingFunction(Delete a calling function from the rules engine component contract.config,rulesEngineComponentContract,policyId,callingFunctionId):Promise<number>
Parameters
| Parameter | Type | Description |
|---|---|---|
config | Config | The configuration object containing network and wallet information. |
rulesEngineComponentContract | object | The contract instance containing the address and ABI |
rulesEngineComponentContract.abi | (object | object | object)[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The ID of the policy for which the calling function is being deleted. |
callingFunctionId | number | The calling function ID to be deleted. |
Returns
Promise<number>
A promise that resolves to the result of the contract interaction, or -1 if unsuccessful.