@@ -161,45 +161,6 @@ impl pallet_treasury::Config for Runtime {
161161}
162162pub type Treasury = pallet_treasury:: Module < Runtime > ;
163163
164- parameter_types ! {
165- pub const CandidacyBond : u64 = 3 ;
166- }
167-
168- thread_local ! {
169- static VOTING_BOND : RefCell <u64 > = RefCell :: new( 2 ) ;
170- static DESIRED_MEMBERS : RefCell <u32 > = RefCell :: new( 2 ) ;
171- static DESIRED_RUNNERS_UP : RefCell <u32 > = RefCell :: new( 2 ) ;
172- static TERM_DURATION : RefCell <u64 > = RefCell :: new( 5 ) ;
173- }
174-
175- pub struct VotingBond ;
176- impl Get < u64 > for VotingBond {
177- fn get ( ) -> u64 {
178- VOTING_BOND . with ( |v| * v. borrow ( ) )
179- }
180- }
181-
182- pub struct DesiredMembers ;
183- impl Get < u32 > for DesiredMembers {
184- fn get ( ) -> u32 {
185- DESIRED_MEMBERS . with ( |v| * v. borrow ( ) )
186- }
187- }
188-
189- pub struct DesiredRunnersUp ;
190- impl Get < u32 > for DesiredRunnersUp {
191- fn get ( ) -> u32 {
192- DESIRED_RUNNERS_UP . with ( |v| * v. borrow ( ) )
193- }
194- }
195-
196- pub struct TermDuration ;
197- impl Get < u64 > for TermDuration {
198- fn get ( ) -> u64 {
199- TERM_DURATION . with ( |v| * v. borrow ( ) )
200- }
201- }
202-
203164thread_local ! {
204165 pub static MEMBERS : RefCell <Vec <AccountId >> = RefCell :: new( vec![ ] ) ;
205166 pub static PRIME : RefCell <Option <AccountId >> = RefCell :: new( None ) ;
@@ -250,6 +211,11 @@ impl ChangeMembers<AccountId> for TestChangeMembers {
250211
251212parameter_types ! {
252213 pub const ElectionsPhragmenModuleId : LockIdentifier = * b"phrelect" ;
214+ pub const CandidacyBond : u64 = 3 ;
215+ pub const VotingBond : u64 = 2 ;
216+ pub const DesiredMembers : u32 = 2 ;
217+ pub const DesiredRunnersUp : u32 = 2 ;
218+ pub const TermDuration : u64 = 5 ;
253219}
254220
255221impl pallet_elections_phragmen:: Config for Runtime {
0 commit comments