Add Assets module (#925)

* Add Assets module

* Fixes

* Fix

* Update comments

* Support `GenesisConfig` without any fields

Fixes: #923

* Do not generate an empty `GenesisConfig`, instead generate no `GenesisConfig`
This commit is contained in:
Gav Wood
2018-10-20 12:43:00 +02:00
committed by GitHub
parent 7f6862ba5e
commit 583c24f017
13 changed files with 360 additions and 42 deletions
@@ -590,6 +590,21 @@ macro_rules! __generate_genesis_config {
);
};
// Do not generate any `GenesisConfig`, if we not require it.
(@GEN
[$traittype:ident $traitinstance:ident]
// normal getters
[]
// for normal builders
[$( $normalclassname:ident ($normalbuild:expr) ;)*]
// for map builders
[$( $mapclassname:ident ($mapbuild:expr) ;)*]
// extra genesis fields
[]
// final build storage call
[$call:expr]
) => {};
(@GEN
[$traittype:ident $traitinstance:ident]
// normal getters