confirmNewCallingContractAdmin(Confirm a new calling contract admin in the rules engine admin contract. This function confirms a new admin for a specific callng contract.config
,rulesEngineAdminContract
,callingContractAddress
):Promise
<void
>
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEngineAdminContract | object | The contract instance containing the address and ABI |
rulesEngineAdminContract.abi | (object | object | object )[] | - |
rulesEngineAdminContract.address | `0x${string}` | - |
callingContractAddress | `0x${string}` | The address of the calling contract to set the admin for. |
Promise
<void
>
A promise that resolves to the result of the contract interaction, or -1 if unsuccessful.