Skip to content

Commit 4cd0c5f

Browse files
KevinMB0220claude
andcommitted
feat(identity-registry): expose unban_expert in contractimpl
Adds pub fn unban_expert(env: Env, expert: Address) -> Result<(), RegistryError> to the IdentityRegistryContract public interface. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent afcb769 commit 4cd0c5f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • contracts/identity-registry-contract/src

contracts/identity-registry-contract/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ impl IdentityRegistryContract {
4343
contract::ban_expert(&env, &expert)
4444
}
4545

46+
/// Unban an expert and restore their verification status (Admin only)
47+
pub fn unban_expert(env: Env, expert: Address) -> Result<(), RegistryError> {
48+
contract::unban_expert(&env, &expert)
49+
}
50+
4651
/// Get the total number of verified experts ever added to the directory
4752
pub fn get_total_experts(env: Env) -> u64 {
4853
contract::get_total_experts(&env)

0 commit comments

Comments
 (0)