From 1367a5fc7250ca991d074c2406892b3fb65465ec Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Fri, 13 Oct 2023 11:17:20 +0000 Subject: [PATCH] fix: use saturating_add --- --- a/pallets/refungible/src/common.rs +++ b/pallets/refungible/src/common.rs @@ -83,7 +83,7 @@ fn set_token_properties(amount: u32) -> Weight { write_token_properties_total_weight::([amount].into_iter(), |amount| { >::load_token_properties() - + >::write_token_properties(amount) + .saturating_add(>::write_token_properties(amount)) }) } -- gitstuff