Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update new nomination default weights #735

Merged
merged 1 commit into from Oct 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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))
}
}