Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed Mar 7, 2024
1 parent ebb5963 commit 6c113e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use frame_support::{assert_noop, assert_ok};
use mock::*;
use parity_scale_codec::Encode;
use sp_core::Pair;
use sp_runtime::{ModuleError, MultiSignature, DispatchError, traits::Dispatchable};
use sp_runtime::{traits::Dispatchable, DispatchError, ModuleError, MultiSignature};

// Constant that reflects the desired vesting period for the tests
// Most tests complete initialization passing initRelayBlock + VESTING as the endRelayBlock
Expand Down
16 changes: 4 additions & 12 deletions src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn initialize_reward_vec(x: u32) -> Weight {
Weight::from_all(143_109_000)
// Standard Error: 21_000
.saturating_add(Weight::from_all(
72_298_000_u64.saturating_mul(x as u64),
))
.saturating_add(Weight::from_all(72_298_000_u64.saturating_mul(x as u64)))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().reads(x as u64))
.saturating_add(T::DbWeight::get().writes(5))
Expand Down Expand Up @@ -96,9 +94,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn change_association_with_relay_keys(x: u32) -> Weight {
Weight::from_all(0)
// Standard Error: 7_000
.saturating_add(Weight::from_all(
47_373_000_u64.saturating_mul(x as u64),
))
.saturating_add(Weight::from_all(47_373_000_u64.saturating_mul(x as u64)))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(4))
}
Expand All @@ -109,9 +105,7 @@ impl WeightInfo for () {
fn initialize_reward_vec(x: u32) -> Weight {
Weight::from_all(143_109_000)
// Standard Error: 21_000
.saturating_add(Weight::from_all(
72_298_000_u64.saturating_mul(x as u64),
))
.saturating_add(Weight::from_all(72_298_000_u64.saturating_mul(x as u64)))
.saturating_add(RocksDbWeight::get().reads(8))
.saturating_add(RocksDbWeight::get().reads(x as u64))
.saturating_add(RocksDbWeight::get().writes(5))
Expand Down Expand Up @@ -140,9 +134,7 @@ impl WeightInfo for () {
fn change_association_with_relay_keys(x: u32) -> Weight {
Weight::from_all(0)
// Standard Error: 7_000
.saturating_add(Weight::from_all(
47_373_000_u64.saturating_mul(x as u64),
))
.saturating_add(Weight::from_all(47_373_000_u64.saturating_mul(x as u64)))
.saturating_add(RocksDbWeight::get().reads(6))
.saturating_add(RocksDbWeight::get().writes(4))
}
Expand Down

0 comments on commit 6c113e8

Please sign in to comment.