diff --git a/pallets/duniter-wot/src/lib.rs b/pallets/duniter-wot/src/lib.rs index b672b30f7eb7416c31d7f52af68edeba3585e4b5..adc21d5734f53ffe97ffa002ad29bbb174458b2a 100644 --- a/pallets/duniter-wot/src/lib.rs +++ b/pallets/duniter-wot/src/lib.rs @@ -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 { match idty_event { IdtyEvent::Created { creator } => { - if let Err(e) = <pallet_certification::Pallet<T, I>>::force_add_cert( - frame_system::Origin::<T>::Root.into(), - *creator, - idty_index, - true, - ) { + if let Err(e) = + <pallet_certification::Pallet<T, I>>::force_add_cert(*creator, idty_index, true) + { sp_std::if_std! { println!("fail to force add cert: {:?}", e) }