Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
const authored and const committed Jul 22, 2024
1 parent d66cb46 commit 4ee6220
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pallets/subtensor/src/swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -633,17 +633,4 @@ impl<T: Config> Pallet<T> {
}
weight.saturating_accrue(T::DbWeight::get().reads(TotalNetworks::<T>::get() as u64));
}

pub fn swap_senate_member(
old_hotkey: &T::AccountId,
new_hotkey: &T::AccountId,
weight: &mut Weight,
) -> DispatchResult {
weight.saturating_accrue(T::DbWeight::get().reads(1));
if T::SenateMembers::is_member(old_hotkey) {
T::SenateMembers::swap_member(old_hotkey, new_hotkey).map_err(|e| e.error)?;
weight.saturating_accrue(T::DbWeight::get().reads_writes(1, 2));
}
Ok(())
}
}

0 comments on commit 4ee6220

Please sign in to comment.