Don't require module name in inherents (#6576)

* Start

* Cleanup `construct_runtime!`

* Add tests

* Fix after merge

* Update the docs
This commit is contained in:
Bastian Köcher
2020-07-06 12:29:17 +02:00
committed by GitHub
parent 2019f70768
commit ad2e832289
15 changed files with 279 additions and 161 deletions
@@ -1,14 +0,0 @@
use frame_support::construct_runtime;
construct_runtime! {
pub enum Runtime where
Block = Block,
NodeBlock = Block,
UncheckedExtrinsic = UncheckedExtrinsic
{
System: system::{Module},
Balance: balances::<Instance1>::{Call(toto), Origin<I>},
}
}
fn main() {}
@@ -1,5 +0,0 @@
error: `Call` is not allowed to have arguments in parens. Only the following modules are allowed to have arguments in parens: `Inherent`.
--> $DIR/params_in_invalid_module.rs:10:40
|
10 | Balance: balances::<Instance1>::{Call(toto), Origin<I>},
| ^^^^^^