mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 08:41:02 +00:00
GenesisBuild<T,I> deprecated. BuildGenesisConfig added (#7397)
* GenesisBuild<T,I> deprecated. BuildGenesisConfig added
* fmt
* fixes
* more fixes
* more fixes
* fixes
* update lockfile for {"substrate"}
* fix
---------
Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
bcb9bd0432
commit
95ba849ee6
@@ -436,12 +436,14 @@ pub mod pallet {
|
||||
/// 2. `sender` and `recipient` must be valid paras.
|
||||
#[pallet::genesis_config]
|
||||
#[derive(DefaultNoBound)]
|
||||
pub struct GenesisConfig {
|
||||
pub struct GenesisConfig<T: Config> {
|
||||
#[serde(skip)]
|
||||
_config: sp_std::marker::PhantomData<T>,
|
||||
preopen_hrmp_channels: Vec<(ParaId, ParaId, u32, u32)>,
|
||||
}
|
||||
|
||||
#[pallet::genesis_build]
|
||||
impl<T: Config> GenesisBuild<T> for GenesisConfig {
|
||||
impl<T: Config> BuildGenesisConfig for GenesisConfig<T> {
|
||||
fn build(&self) {
|
||||
initialize_storage::<T>(&self.preopen_hrmp_channels);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user