Skip to content
Snippets Groups Projects
Commit 4fd703c9 authored by Éloïs's avatar Éloïs
Browse files

feat(idty): add event IdtyRemoved

parent bd91b306
No related branches found
No related tags found
No related merge requests found
...@@ -214,6 +214,9 @@ pub mod pallet { ...@@ -214,6 +214,9 @@ pub mod pallet {
/// An identity has been validated /// An identity has been validated
/// [idty_index] /// [idty_index]
IdtyValidated { idty_index: T::IdtyIndex }, IdtyValidated { idty_index: T::IdtyIndex },
/// An identity has been removed
/// [idty_index]
IdtyRemoved { idty_index: T::IdtyIndex },
} }
// CALLS // // CALLS //
...@@ -462,6 +465,7 @@ pub mod pallet { ...@@ -462,6 +465,7 @@ pub mod pallet {
if let Some(idty_val) = Identities::<T>::take(idty_index) { if let Some(idty_val) = Identities::<T>::take(idty_index) {
frame_system::Pallet::<T>::dec_sufficients(&idty_val.owner_key); frame_system::Pallet::<T>::dec_sufficients(&idty_val.owner_key);
} }
Self::deposit_event(Event::IdtyRemoved { idty_index });
T::OnIdtyChange::on_idty_change(idty_index, IdtyEvent::Removed); T::OnIdtyChange::on_idty_change(idty_index, IdtyEvent::Removed);
0 0
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment