Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Prev Previous commit
Next Next commit
Update benchmarking.rs
  • Loading branch information
shawntabrizi committed Sep 15, 2020
commit f7bfc7109e55ec8486f07440f18ea0097d092667
8 changes: 5 additions & 3 deletions frame/identity/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,16 +323,18 @@ benchmarks! {

kill_identity {
let r in ...;
let s in ...;
let x in ...;
// Setting up our own account below.
let s in _ .. _ => {};
let x in _ .. _ => {};

let target: T::AccountId = account("target", 0, SEED);
let target_origin: <T as frame_system::Trait>::Origin = RawOrigin::Signed(target.clone()).into();
let target_lookup: <T::Lookup as StaticLookup>::Source = T::Lookup::unlookup(target.clone());
let _ = T::Currency::make_free_balance_be(&target, BalanceOf::<T>::max_value());

let info = create_identity_info::<T>(T::MaxAdditionalFields::get());
let info = create_identity_info::<T>(x);
Identity::<T>::set_identity(target_origin.clone(), info)?;
let _ = add_sub_accounts::<T>(&target, s)?;

// User requests judgement from all the registrars, and they approve
for i in 0..r {
Expand Down