deleteCallingFunction(Delete a calling function from the rules engine component contract.config
,rulesEngineComponentContract
,policyId
,callingFunctionId
):Promise
<number
>
Parameter | Type | Description |
---|---|---|
config | Config | - |
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. |
Promise
<number
>
A promise that resolves to the result of the contract interaction, or -1 if unsuccessful.