mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 20:57:59 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user