git.delta.rocks / unique-network / refs/commits / 1367a5fc7250

difftreelog

fix use saturating_add

Daniel Shiposha2023-10-13parent: #442d14a.patch.diff
in: master

1 file changed

modifiedpallets/refungible/src/common.rsdiffbeforeafterboth
83 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