Skip to content

Commit

Permalink
Merge pull request #17 from starknet-id/fix/remove_proxy_admin_step2
Browse files Browse the repository at this point in the history
fix: remove proxy admin step2
  • Loading branch information
Th0rgal authored May 28, 2024
2 parents fc7dd7d + 2473742 commit 0b4f840
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/identity/main.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ mod Identity {
user_data: LegacyMap<(u128, felt252), felt252>,
verifier_data: LegacyMap<(u128, felt252, ContractAddress), felt252>,
main_id_by_addr: LegacyMap<ContractAddress, u128>,
// legacy owner
Proxy_admin: felt252,
#[substorage(v0)]
storage_read: storage_read_component::Storage,
#[substorage(v0)]
Expand Down Expand Up @@ -311,10 +309,5 @@ mod Identity {
)
);
}

fn remove_proxy_admin(ref self: ContractState) {
self.ownable.assert_only_owner();
self.Proxy_admin.write(0);
}
}
}
2 changes: 0 additions & 2 deletions src/interface/identity.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,4 @@ 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 0b4f840

Please sign in to comment.