Enumeratable dispatches using unhashed index in key. (#4278)

This commit is contained in:
Gavin Wood authored and GitHub committed 2019-12-03 00:49:27 +01:00
1 parent c1ee9aeec1
commit 0f1a5f6514
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -283,7 +283,7 @@ decl_storage! {
map ReferendumIndex => Option<(ReferendumInfo<T::BlockNumber, T::Hash>)>;
/// Queue of successful referenda to be dispatched.
pub DispatchQueue get(fn dispatch_queue):
map T::BlockNumber => Vec<Option<(T::Hash, ReferendumIndex)>>;
map hasher(twox_64_concat) T::BlockNumber => Vec<Option<(T::Hash, ReferendumIndex)>>;
/// Get the voters for the current proposal.
pub VotersFor get(fn voters_for): map ReferendumIndex => Vec<T::AccountId>;