diff --git a/pallets/networks/Cargo.toml b/pallets/networks/Cargo.toml index ae6948e..64f6d90 100644 --- a/pallets/networks/Cargo.toml +++ b/pallets/networks/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ghost-networks" -version = "0.1.19" +version = "0.1.20" license.workspace = true authors.workspace = true edition.workspace = true diff --git a/pallets/networks/src/lib.rs b/pallets/networks/src/lib.rs index 0447e42..344df73 100644 --- a/pallets/networks/src/lib.rs +++ b/pallets/networks/src/lib.rs @@ -255,7 +255,7 @@ pub mod module { #[pallet::genesis_config] pub struct GenesisConfig { - pub networks: Vec<(T::NetworkId, Vec)>, + pub networks: Vec<(T::NetworkId, Vec, BalanceOf)>, } impl Default for GenesisConfig { @@ -270,11 +270,12 @@ pub mod module { if !self.networks.is_empty() { self.networks .iter() - .for_each(|(chain_id, network_metadata)| { + .for_each(|(chain_id, network_metadata, gatekeeper_amount)| { let network = NetworkData::decode(&mut &network_metadata[..]) .expect("Error decoding NetworkData"); Pallet::::do_register_network(chain_id.clone(), network) .expect("Error registering network"); + GatekeeperAmount::::insert(chain_id, gatekeeper_amount); }); } }