Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ruseinov committed Jan 13, 2023
1 parent 9e561e9 commit 363eb6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frame/staking/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5131,6 +5131,9 @@ fn change_of_max_nominations() {
assert!(Nominators::<Test>::get(60).is_some());
assert_eq!(Staking::electing_voters(None).unwrap().len(), 3 + 1);

// TODO: This has to be fixed, we can't re-nominate without reporting previous
// nominations to the EventHandler.

// now one of them can revive themselves by re-nominating to a proper value.
assert_ok!(Staking::nominate(RuntimeOrigin::signed(71), vec![1]));
assert_eq!(
Expand All @@ -5140,6 +5143,7 @@ fn change_of_max_nominations() {
vec![(70, 1), (60, 1)]
);

// TODO: This part has to be removed, we need to be able to decode old nominations.
// or they can be chilled by any account.
assert!(Nominators::<Test>::contains_key(101));
assert!(Nominators::<Test>::get(101).is_none());
Expand Down

0 comments on commit 363eb6f

Please sign in to comment.