Skip to content

Commit

Permalink
Merge pull request #735 from gregdhill/fix/nomination-weights
Browse files Browse the repository at this point in the history
fix: update new nomination default weights
  • Loading branch information
gregdhill committed Oct 18, 2022
2 parents d12698c + 7a6a67e commit e06f426
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/nomination/src/default_weights.rs
Expand Up @@ -130,8 +130,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
}
// 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))
}
}

Expand Down Expand Up @@ -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))
}
}

0 comments on commit e06f426

Please sign in to comment.