Skip to content
Snippets Groups Projects
Commit 4849a7b6 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

remove origin from force_add_cert

parent 466c79ff
Branches
Tags
1 merge request!166refac membership renewal
...@@ -303,12 +303,9 @@ impl<T: Config<I>, I: 'static> pallet_identity::traits::OnIdtyChange<T> for Pall ...@@ -303,12 +303,9 @@ impl<T: Config<I>, I: 'static> pallet_identity::traits::OnIdtyChange<T> for Pall
fn on_idty_change(idty_index: IdtyIndex, idty_event: &IdtyEvent<T>) -> Weight { fn on_idty_change(idty_index: IdtyIndex, idty_event: &IdtyEvent<T>) -> Weight {
match idty_event { match idty_event {
IdtyEvent::Created { creator } => { IdtyEvent::Created { creator } => {
if let Err(e) = <pallet_certification::Pallet<T, I>>::force_add_cert( if let Err(e) =
frame_system::Origin::<T>::Root.into(), <pallet_certification::Pallet<T, I>>::force_add_cert(*creator, idty_index, true)
*creator, {
idty_index,
true,
) {
sp_std::if_std! { sp_std::if_std! {
println!("fail to force add cert: {:?}", e) println!("fail to force add cert: {:?}", e)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment