Skip to content

Commit 05b92f7

Browse files
ggwpeznathanwhit
authored andcommitted
Fix staking genesis build (paritytech#14140)
Cumulus CI is stuck in paritytech/cumulus#2574, so companion check will be red. Changes_ - Controller not needed Signed-off-by: Oliver Tale-Yazdi <[email protected]>
1 parent b98c040 commit 05b92f7

File tree

1 file changed

+3
-3
lines changed
  • frame/staking/src/pallet

1 file changed

+3
-3
lines changed

frame/staking/src/pallet/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ pub mod pallet {
631631
MaxNominatorsCount::<T>::put(x);
632632
}
633633

634-
for &(ref stash, ref controller, balance, ref status) in &self.stakers {
634+
for &(ref stash, _, balance, ref status) in &self.stakers {
635635
crate::log!(
636636
trace,
637637
"inserting genesis staker: {:?} => {:?} => {:?}",
@@ -650,11 +650,11 @@ pub mod pallet {
650650
));
651651
frame_support::assert_ok!(match status {
652652
crate::StakerStatus::Validator => <Pallet<T>>::validate(
653-
T::RuntimeOrigin::from(Some(controller.clone()).into()),
653+
T::RuntimeOrigin::from(Some(stash.clone()).into()),
654654
Default::default(),
655655
),
656656
crate::StakerStatus::Nominator(votes) => <Pallet<T>>::nominate(
657-
T::RuntimeOrigin::from(Some(controller.clone()).into()),
657+
T::RuntimeOrigin::from(Some(stash.clone()).into()),
658658
votes.iter().map(|l| T::Lookup::unlookup(l.clone())).collect(),
659659
),
660660
_ => Ok(()),

0 commit comments

Comments
 (0)