A Calling Contract Admin is a special role that manages which policies are checked when a contract interacts with the rules engine. Think of it as a “policy manager” for a specific contract.
If the Calling Contract Admin renounces their role, the contract will temporarily have no admin. During this period:
No one can configure or change which policies are checked for the contract.
Policy management functionality becomes unavailable until a new admin is assigned.
Only the contract owner (or another authorized party, depending on your access controls) can assign a new Calling Contract Admin using the setCallingContractAdmin() function.
It is recommended to promptly assign a new admin to restore policy management capabilities.
Renunciation is irreversible for the previous admin; they must be re-assigned if they wish to regain the role.
After deployment, the contract owner can assign a Calling Contract Admin using the setCallingContractAdmin() function (inherited from RulesEngineClient).
Important: You must override the setCallingContractAdmin() function with proper access controls to prevent unauthorized users from changing the admin. It’s recommended that only the current Calling Contract Admin should be able to invoke this function.