Browse Source

benchmark: fix working-group and script

conectado 4 years ago
parent
commit
076003b6d8
2 changed files with 2 additions and 3 deletions
  1. 1 2
      runtime-modules/working-group/src/benchmarking.rs
  2. 1 1
      scripts/generate-weights.sh

+ 1 - 2
runtime-modules/working-group/src/benchmarking.rs

@@ -7,7 +7,6 @@ use frame_system::EventRecord;
 use frame_system::Module as System;
 use frame_system::RawOrigin;
 use sp_runtime::traits::Bounded;
-use sp_std::cmp::min;
 use sp_std::prelude::*;
 
 use crate::types::StakeParameters;
@@ -67,7 +66,7 @@ fn apply_on_opening_helper<T: Trait<I>, I: Instance>(
 ) -> ApplicationId {
     let stake_parameters = StakeParameters {
         // Due to mock implementation of StakingHandler we can't go over 1000
-        stake: min(BalanceOf::<T>::max_value(), BalanceOf::<T>::from(1000)),
+        stake: T::MinimumStakeForOpening::get(),
         staking_account_id: applicant_id.clone(),
     };
 

+ 1 - 1
scripts/generate-weights.sh

@@ -34,7 +34,7 @@ benchmark() {
 # So uncomment this when we move to a version that contains that PR.
 # See issue: #1979
 # benchmark frame_system
-benchmark pallet_utility
+benchmark substrate_utility
 benchmark pallet_session
 # benchmark pallet_timestamp