From 2ce1a07efc299b79a9584c80d0116c771c095777 Mon Sep 17 00:00:00 2001 From: Iris Date: Tue, 21 May 2024 11:06:57 +0200 Subject: [PATCH] fix: set Proxy_admin to 0 --- src/identity/main.cairo | 5 +++++ src/interface/identity.cairo | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/identity/main.cairo b/src/identity/main.cairo index dad3de6..fb7eae4 100644 --- a/src/identity/main.cairo +++ b/src/identity/main.cairo @@ -312,5 +312,10 @@ mod Identity { ) ); } + + fn remove_proxy_admin(ref self: ContractState) { + self.ownable.assert_only_owner(); + self.Proxy_admin.write(0); + } } } diff --git a/src/interface/identity.cairo b/src/interface/identity.cairo index 1327d02..9683add 100644 --- a/src/interface/identity.cairo +++ b/src/interface/identity.cairo @@ -60,4 +60,6 @@ trait IIdentity { fn set_extended_verifier_data( ref self: TContractState, id: u128, field: felt252, data: Span, domain: u32 ); + + fn remove_proxy_admin(ref self: TContractState); }