Skip to content

Commit

Permalink
rewrite weight
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekkMA committed Aug 5, 2024
1 parent f9559c8 commit 3c15d2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions substrate/frame/parameters/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit 3c15d2d

Please sign in to comment.