From 39bb0ce2b09a58588ea1dabfd617151347ec907f Mon Sep 17 00:00:00 2001
From: Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com>
Date: Tue, 10 Oct 2023 11:50:14 +0200
Subject: [PATCH] GenesisBuilder: new function

---
 substrate/client/chain-spec/src/lib.rs          | 2 +-
 substrate/primitives/genesis-builder/src/lib.rs | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/substrate/client/chain-spec/src/lib.rs b/substrate/client/chain-spec/src/lib.rs
index 6a922e7b40b..a80c380803d 100644
--- a/substrate/client/chain-spec/src/lib.rs
+++ b/substrate/client/chain-spec/src/lib.rs
@@ -325,7 +325,7 @@ mod chain_spec;
 mod extension;
 mod genesis_block;
 mod genesis_config_builder;
-mod json_patch;
+pub mod json_patch;
 
 pub use self::{
 	chain_spec::{
diff --git a/substrate/primitives/genesis-builder/src/lib.rs b/substrate/primitives/genesis-builder/src/lib.rs
index e002cd3aa6f..17172311d83 100644
--- a/substrate/primitives/genesis-builder/src/lib.rs
+++ b/substrate/primitives/genesis-builder/src/lib.rs
@@ -41,6 +41,7 @@ sp_api::decl_runtime_apis! {
 		/// This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
 		/// blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
 		fn create_default_config() -> sp_std::vec::Vec<u8>;
+		fn create_default_config2(params: sp_std::vec::Vec<u8>) -> sp_std::vec::Vec<u8>;
 
 		/// Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
 		///
-- 
GitLab