From 7a6a67e0843888341d56792bc539b72d611889e6 Mon Sep 17 00:00:00 2001 From: Gregory Hill Date: Tue, 18 Oct 2022 11:31:51 +0100 Subject: [PATCH] fix: update new nomination default weights Signed-off-by: Gregory Hill --- crates/nomination/src/default_weights.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/nomination/src/default_weights.rs b/crates/nomination/src/default_weights.rs index bd2725f06e..9a33a915d1 100644 --- a/crates/nomination/src/default_weights.rs +++ b/crates/nomination/src/default_weights.rs @@ -130,8 +130,8 @@ impl WeightInfo for SubstrateWeight { } // Storage: Nomination Nominationlimit (r:0 w:1) fn set_nomination_limit() -> Weight { - (2_835_000 as Weight) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) + Weight::from_ref_time(2_835_000 as u64) + .saturating_add(T::DbWeight::get().writes(1 as u64)) } } @@ -222,8 +222,8 @@ impl WeightInfo for () { } // Storage: Nomination NominationLimit (r:0 w:1) fn set_nomination_limit() -> Weight { - (2_835_000 as Weight) - .saturating_add(RocksDbWeight::get().writes(1 as Weight)) + Weight::from_ref_time(2_835_000 as u64) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) } }