Skip to content

Commit

Permalink
Merge pull request #19 from starknet-id/testnet
Browse files Browse the repository at this point in the history
Production Release: Finalize admin migration
  • Loading branch information
Th0rgal authored May 30, 2024
2 parents fc7dd7d + 003b59d commit ea538c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
3 changes: 3 additions & 0 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ sierra = true
casm = true
casm-add-pythonic-hints = true

[tool.voyager]
identity = { path = "src/identity.cairo" }

[lib]
sierra = true
casm = false
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 ea538c4

Please sign in to comment.