Trait frame_support::traits::GenesisBuild
source · pub trait GenesisBuild<T, I = ()>: Default + MaybeSerializeDeserialize {
// Required method
fn build(&self);
// Provided methods
fn build_storage(&self) -> Result<Storage, String> { ... }
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String> { ... }
}
Expand description
A trait to define the build function of a genesis config, T and I are placeholder for pallet trait and pallet instance.
Required Methods§
Provided Methods§
sourcefn build_storage(&self) -> Result<Storage, String>
fn build_storage(&self) -> Result<Storage, String>
Build the storage using build
inside default storage.