difftreelog
fix use saturating_add
in: master
1 file changed
pallets/refungible/src/common.rsdiffbeforeafterboth83 fn set_token_properties(amount: u32) -> Weight {83 fn set_token_properties(amount: u32) -> Weight {84 write_token_properties_total_weight::<T, _>([amount].into_iter(), |amount| {84 write_token_properties_total_weight::<T, _>([amount].into_iter(), |amount| {85 <SelfWeightOf<T>>::load_token_properties()85 <SelfWeightOf<T>>::load_token_properties()86 + <SelfWeightOf<T>>::write_token_properties(amount)86 .saturating_add(<SelfWeightOf<T>>::write_token_properties(amount))87 })87 })88 }88 }8989