Skip to content
Snippets Groups Projects
Commit b21c4952 authored by Shaun Wang's avatar Shaun Wang Committed by GitHub
Browse files

Migrate pallet-elections to pallet attribute macro (#9088)


* Migrate elections pallet to pallet attribute macro.

* Metadata fix.

* Update frame/elections/src/lib.rs

Co-authored-by: default avatarGuillaume Thiolliere <gui.thiolliere@gmail.com>
parent ae5cd339
No related merge requests found
This diff is collapsed.
......@@ -20,7 +20,7 @@
#![cfg(test)]
use frame_support::{
StorageValue, StorageMap, parameter_types, assert_ok,
parameter_types, assert_ok,
traits::{ChangeMembers, Currency, LockIdentifier},
};
use sp_core::H256;
......@@ -266,7 +266,7 @@ pub(crate) fn new_test_ext_with_candidate_holes() -> sp_io::TestExternalities {
let mut t = ExtBuilder::default().build();
t.execute_with(|| {
<elections::Candidates<Test>>::put(vec![0, 0, 1]);
elections::CandidateCount::put(1);
elections::CandidateCount::<Test>::put(1);
<elections::RegisterInfoOf<Test>>::insert(1, (0, 2));
});
t
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment