From 24737429b4f0dee624b301849faddb07652304b1 Mon Sep 17 00:00:00 2001 From: Iris Date: Tue, 21 May 2024 11:09:37 +0200 Subject: [PATCH 1/3] fix: remove Proxy_admin --- src/identity/main.cairo | 7 ------- src/interface/identity.cairo | 2 -- 2 files changed, 9 deletions(-) diff --git a/src/identity/main.cairo b/src/identity/main.cairo index fb7eae4..f095d43 100644 --- a/src/identity/main.cairo +++ b/src/identity/main.cairo @@ -61,8 +61,6 @@ mod Identity { user_data: LegacyMap<(u128, felt252), felt252>, verifier_data: LegacyMap<(u128, felt252, ContractAddress), felt252>, main_id_by_addr: LegacyMap, - // legacy owner - Proxy_admin: felt252, #[substorage(v0)] storage_read: storage_read_component::Storage, #[substorage(v0)] @@ -312,10 +310,5 @@ 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 9683add..1327d02 100644 --- a/src/interface/identity.cairo +++ b/src/interface/identity.cairo @@ -60,6 +60,4 @@ 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); } From 7da43576d716f1e92414b783b1529829024ddccc Mon Sep 17 00:00:00 2001 From: Thomas Marchand Date: Thu, 30 May 2024 17:03:33 +0100 Subject: [PATCH 2/3] feat: add config for voyager verification --- Scarb.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scarb.toml b/Scarb.toml index 861d942..d5ddcb5 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -17,6 +17,9 @@ sierra = true casm = true casm-add-pythonic-hints = true +[tool.voyager] +my_contract = { path = "src/identity.cairo" } + [lib] sierra = true casm = false From 003b59dceeba0d535e574d957836451e4c5a844c Mon Sep 17 00:00:00 2001 From: Thomas Marchand Date: Thu, 30 May 2024 17:04:51 +0100 Subject: [PATCH 3/3] fix: identity contract name --- Scarb.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scarb.toml b/Scarb.toml index d5ddcb5..6cbef4f 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -18,7 +18,7 @@ casm = true casm-add-pythonic-hints = true [tool.voyager] -my_contract = { path = "src/identity.cairo" } +identity = { path = "src/identity.cairo" } [lib] sierra = true