Skip to content
Snippets Groups Projects

Fix weight accounting

Merged Benjamin Gallois requested to merge 167-fix-remove-member-weight into master
Compare and Show latest version
2 files
+ 6
6
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -493,10 +493,10 @@ impl<T: Config> Pallet<T> {
}
pub fn on_removed_wot_member(idty_index: T::IdtyIndex) -> Weight {
let mut weight = T::WeightInfo::on_remove_wot_member_empty();
let mut weight = T::WeightInfo::on_removed_wot_member_empty();
if Smiths::<T>::get(idty_index).is_some() {
Self::_do_exclude_smith(idty_index, SmithRemovalReason::LostMembership);
weight += T::WeightInfo::on_remove_wot_member();
weight += T::WeightInfo::on_removed_wot_member();
}
weight
}
Loading