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
No related branches found
No related tags found
1 merge request!166refac membership renewal
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment