Skip to content

Commit

Permalink
fix: set Proxy_admin to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed May 21, 2024
1 parent c8734d2 commit 2ce1a07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/identity/main.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -312,5 +312,10 @@ mod Identity {
)
);
}

fn remove_proxy_admin(ref self: ContractState) {
self.ownable.assert_only_owner();
self.Proxy_admin.write(0);
}
}
}
2 changes: 2 additions & 0 deletions src/interface/identity.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ trait IIdentity<TContractState> {
fn set_extended_verifier_data(
ref self: TContractState, id: u128, field: felt252, data: Span<felt252>, domain: u32
);

fn remove_proxy_admin(ref self: TContractState);
}

0 comments on commit 2ce1a07

Please sign in to comment.