Let construct_runtime! generate ALL_MODULES as nested tuples (#3732)

So, instead of:
`type ALL_MODULES = (Module1, Module2, Module3)`;
Generate it like this:
`type ALL_MODULES = ((Module1, Module2), Module3,);`

This should make `construct_runtime!` support an "unlimited" number of
modules.
This commit is contained in:
Bastian Köcher
2019-10-01 17:00:22 +02:00
committed by GitHub
parent a7b1284fb7
commit 2f50ef55d3
2 changed files with 30 additions and 2 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ use rstd::prelude::*;
use sr_primitives::{
traits::{StaticLookup, Dispatchable}, weights::SimpleDispatchInfo, DispatchError,
};
use support::{StorageValue, Parameter, decl_module, decl_event, decl_storage, ensure};
use support::{Parameter, decl_module, decl_event, decl_storage, ensure};
use system::ensure_signed;
pub trait Trait: system::Trait {