Function frame_support::genesis_builder_helper::get_preset
source ยท pub fn get_preset<GC>(
name: &Option<PresetId>,
preset_for_name: impl FnOnce(&PresetId) -> Option<Vec<u8>>,
) -> Option<Vec<u8>>where
GC: BuildGenesisConfig + Default,
Expand description
Get the default GenesisConfig
as a JSON blob if name
is None.
Query of named presets is delegetaed to provided preset_for_name
closure. For more info refer
to sp_genesis_builder::GenesisBuilder::get_preset
.