Managing Contract Policies
A guide on how to update, remove, and audit policies attached to your smart contracts.
Prerequisites
- Deployed Contract
- Policy Admin Access
Updating a Policy Template
You cannot change a template once created (they are immutable for auditability). Instead, create a new template and update the contract binding.
marood tx pcl create-policy-template ...
marood tx pcl set-contract-policy --template-id <NEW_ID> ... Tip: Always notify your users before changing compliance requirements.
Removing a Policy
To make a contract permissionless again, you can set the policy to a 'Null' template or use the delete command if supported by the specific network params.
marood tx pcl delete-contract-policy --contract 0x...