addAdminToPermissionList(Adds a new address to the permission list for a foreign call.config
,rulesEngineForeignCallContract
,foreignCallAddress
,functionSelector
,policyAdminToAdd
):Promise
<number
>
Parameter | Type | Description |
---|---|---|
config | Config | The configuration object containing network and wallet information. |
rulesEngineForeignCallContract | object | An object representing the Rules Engine Component Contract, |
rulesEngineForeignCallContract.abi | (object | object | object )[] | - |
rulesEngineForeignCallContract.address | `0x${string}` | - |
foreignCallAddress | `0x${string}` | the address of the contract the foreign call belongs to. |
functionSelector | string | The selector for the specific foreign call |
policyAdminToAdd | `0x${string}` | The address of the admin to add to the list |
Promise
<number
>
A promise that resolves to a number: - 0
if the operation is successful. - -1
if an error occurs during the simulation of the contract interaction.