Modify doublemap syntax (#4576)

* modify doublemap syntax

* Apply suggestions from code review

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
thiolliereandBastian Köcher authored and Gavin Wood committed 2020-01-10 11:52:56 +01:00
1 parent 3d74b9b669
commit b74c88b3cc
15 files changed
+41 -40

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ decl_storage! {
Reports get(fn reports): map ReportIdOf<T> => Option<OffenceDetails<T::AccountId, T::IdentificationTuple>>;
/// A vector of reports of the same kind that happened at the same time slot.
ConcurrentReportsIndex: double_map Kind, blake2_256(OpaqueTimeSlot) => Vec<ReportIdOf<T>>;
ConcurrentReportsIndex: double_map Kind, OpaqueTimeSlot => Vec<ReportIdOf<T>>;
/// Enumerates all reports of a kind along with the time they happened.
///