mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-10 02:57:58 +00:00
Replace T::AccountId with <T::Lookup as StaticLookup>::Source (#11670)
* initial * update * update * update * cargo fmt * update * update benchmarks * AccountIdLookupOf<T> * cargo fmt * fix conflits * cargo fmt * update Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -83,7 +83,7 @@ pub fn create_validator_with_nominators<T: Config>(
|
||||
let validator_prefs =
|
||||
ValidatorPrefs { commission: Perbill::from_percent(50), ..Default::default() };
|
||||
Staking::<T>::validate(RawOrigin::Signed(v_controller).into(), validator_prefs)?;
|
||||
let stash_lookup: <T::Lookup as StaticLookup>::Source = T::Lookup::unlookup(v_stash.clone());
|
||||
let stash_lookup = T::Lookup::unlookup(v_stash.clone());
|
||||
|
||||
points_total += 10;
|
||||
points_individual.push((v_stash.clone(), 10));
|
||||
@@ -217,8 +217,7 @@ benchmarks! {
|
||||
bond {
|
||||
let stash = create_funded_user::<T>("stash", USER_SEED, 100);
|
||||
let controller = create_funded_user::<T>("controller", USER_SEED, 100);
|
||||
let controller_lookup: <T::Lookup as StaticLookup>::Source
|
||||
= T::Lookup::unlookup(controller.clone());
|
||||
let controller_lookup = T::Lookup::unlookup(controller.clone());
|
||||
let reward_destination = RewardDestination::Staked;
|
||||
let amount = T::Currency::minimum_balance() * 10u32.into();
|
||||
whitelist_account!(stash);
|
||||
@@ -365,7 +364,7 @@ benchmarks! {
|
||||
100,
|
||||
Default::default(),
|
||||
)?;
|
||||
let stash_lookup: <T::Lookup as StaticLookup>::Source = T::Lookup::unlookup(stash.clone());
|
||||
let stash_lookup = T::Lookup::unlookup(stash.clone());
|
||||
|
||||
// they start validating.
|
||||
Staking::<T>::validate(RawOrigin::Signed(controller.clone()).into(), Default::default())?;
|
||||
|
||||
Reference in New Issue
Block a user