mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-26 03:01:07 +00:00
Rename pallet trait Trait to Config (#7599)
* rename Trait to Config * add test asserting using Trait is still valid. * fix ui tests
This commit is contained in:
committed by
GitHub
parent
dd3c84c362
commit
1cbfc9257f
@@ -680,8 +680,8 @@ fn retracting_active_voter_should_slash_reporter() {
|
||||
assert_ok!(Elections::end_block(System::block_number()));
|
||||
|
||||
assert_eq!(Elections::vote_index(), 2);
|
||||
assert_eq!(<Test as Trait>::InactiveGracePeriod::get(), 1);
|
||||
assert_eq!(<Test as Trait>::VotingPeriod::get(), 4);
|
||||
assert_eq!(<Test as Config>::InactiveGracePeriod::get(), 1);
|
||||
assert_eq!(<Test as Config>::VotingPeriod::get(), 4);
|
||||
assert_eq!(Elections::voter_info(4), Some(VoterInfo { last_win: 1, last_active: 0, stake: 40, pot: 0 }));
|
||||
|
||||
assert_ok!(Elections::reap_inactive_voter(Origin::signed(4),
|
||||
|
||||
Reference in New Issue
Block a user