Skip to content

Commit

Permalink
Merge pull request #16 from starknet-id/fix/remove_proxy_admin_step1
Browse files Browse the repository at this point in the history
fix: set Proxy_admin to 0
  • Loading branch information
Th0rgal authored May 28, 2024
2 parents d99d36d + 2ce1a07 commit fc7dd7d
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 @@ -311,5 +311,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 fc7dd7d

Please sign in to comment.