From 3c15d2d02e0c26cc9ec794699faa0ee59936764b Mon Sep 17 00:00:00 2001 From: Tarek Mohamed Abdalla Date: Mon, 5 Aug 2024 16:27:57 +0100 Subject: [PATCH] rewrite weight --- substrate/frame/parameters/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/substrate/frame/parameters/src/lib.rs b/substrate/frame/parameters/src/lib.rs index 50a3d7219138..c170d4e270b3 100644 --- a/substrate/frame/parameters/src/lib.rs +++ b/substrate/frame/parameters/src/lib.rs @@ -179,9 +179,8 @@ pub mod pallet { let proof_size_diff = proof_size_after.saturating_sub(proof_size_before); - Weight::zero() + Weight::from_parts(0, proof_size_diff) .saturating_add(T::DbWeight::get().reads(items)) - .saturating_add(Weight::from_parts(0, proof_size_diff)) } }