Skip to content

Commit 217b832

Browse files
authored
Fix some broken benchmarks (#6528)
1 parent 5c1c432 commit 217b832

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/benchmarking.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
use super::*;
2323
use frame_system::RawOrigin;
2424
use frame_benchmarking::{benchmarks, account};
25-
use sp_runtime::traits::{Bounded, Saturating};
25+
use sp_runtime::traits::Bounded;
2626
use core::convert::TryInto;
2727

2828
use crate::Module as Multisig;
@@ -36,8 +36,7 @@ fn setup_multi<T: Trait>(s: u32, z: u32)
3636
for i in 0 .. s {
3737
let signatory = account("signatory", i, SEED);
3838
// Give them some balance for a possible deposit
39-
let deposit = T::DepositBase::get() + T::DepositFactor::get() * s.into();
40-
let balance = T::Currency::minimum_balance().saturating_mul(100.into()) + deposit;
39+
let balance = BalanceOf::<T>::max_value();
4140
T::Currency::make_free_balance_be(&signatory, balance);
4241
signatories.push(signatory);
4342
}

0 commit comments

Comments
 (0)