Skip to content

Commit

Permalink
fix keystore benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
NunoAlexandre committed Oct 25, 2023
1 parent cada2ad commit 516e237
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pallets/keystore/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ use sp_runtime::traits::Hash;

use super::*;

pub const ExistentialDeposit: u128 = 1;

benchmarks! {
where_clause {
where
Expand All @@ -31,7 +33,7 @@ benchmarks! {
let n in 1..T::MaxKeys::get();
let caller: T::AccountId = account("acc_0", 0, 0);
let test_keys: Vec<AddKey<T::Hash>> = build_test_keys::<T>(n);
T::Currency::deposit_creating(&caller.clone().into(), T::DefaultKeyDeposit::get() * n as u128);
T::Currency::deposit_creating(&caller.clone().into(), ExistentialDeposit + T::DefaultKeyDeposit::get() * n as u128);
let origin = RawOrigin::Signed(caller.clone());
}: add_keys(origin, test_keys)
verify {
Expand Down

0 comments on commit 516e237

Please sign in to comment.