From 393f0e2c1dfa7baaede86e1e54ac5b12f93c2d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Eng=C3=A9libert?= <tuxmain@zettascript.org> Date: Thu, 16 Jan 2025 09:57:24 +0100 Subject: [PATCH] identity: remove owner_key in IdtyConfirm event --- docs/api/runtime-events.md | 3 +-- pallets/duniter-wot/src/tests.rs | 1 - pallets/identity/src/benchmarking.rs | 1 - pallets/identity/src/lib.rs | 2 -- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/api/runtime-events.md b/docs/api/runtime-events.md index f843ea5eb..d485840ae 100644 --- a/docs/api/runtime-events.md +++ b/docs/api/runtime-events.md @@ -1270,12 +1270,11 @@ owner_key: T::AccountId <li> <details> <summary> -<code>IdtyConfirmed(idty_index, owner_key, name)</code> - 1</summary> +<code>IdtyConfirmed(idty_index, name)</code> - 1</summary> An identity has been confirmed by its owner. ```rust idty_index: T::IdtyIndex -owner_key: T::AccountId name: IdtyName ``` diff --git a/pallets/duniter-wot/src/tests.rs b/pallets/duniter-wot/src/tests.rs index c82be3514..a6baf65e2 100644 --- a/pallets/duniter-wot/src/tests.rs +++ b/pallets/duniter-wot/src/tests.rs @@ -168,7 +168,6 @@ fn test_confirm_idty_ok() { System::assert_has_event(RuntimeEvent::Identity( pallet_identity::Event::IdtyConfirmed { idty_index: 6, - owner_key: 6, name: IdtyName::from("Ferdie"), }, )); diff --git a/pallets/identity/src/benchmarking.rs b/pallets/identity/src/benchmarking.rs index 831b72429..60662c48e 100644 --- a/pallets/identity/src/benchmarking.rs +++ b/pallets/identity/src/benchmarking.rs @@ -160,7 +160,6 @@ mod benchmarks { assert_has_event::<T>( Event::<T>::IdtyConfirmed { idty_index: idty_index.unwrap(), - owner_key, name: IdtyName("new_identity".into()), } .into(), diff --git a/pallets/identity/src/lib.rs b/pallets/identity/src/lib.rs index 266d4aa99..324d782f5 100644 --- a/pallets/identity/src/lib.rs +++ b/pallets/identity/src/lib.rs @@ -303,7 +303,6 @@ pub mod pallet { /// An identity has been confirmed by its owner. IdtyConfirmed { idty_index: T::IdtyIndex, - owner_key: T::AccountId, name: IdtyName, }, /// An identity has been validated. @@ -424,7 +423,6 @@ pub mod pallet { <IdentitiesNames<T>>::insert(idty_name.clone(), idty_index); Self::deposit_event(Event::IdtyConfirmed { idty_index, - owner_key: who, name: idty_name, }); Ok(().into()) -- GitLab