mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-24 04:35:04 +00:00
Expose load_spec (#4556)
This commit is contained in:
1 parent
6a0e60c3a4
commit
bc9676737f
1 file changed
+2
-1
@@ -128,7 +128,8 @@ fn generate_node_name() -> String {
|
||||
result
|
||||
}
|
||||
|
||||
fn load_spec<F, G, E>(cli: &SharedParams, factory: F) -> error::Result<ChainSpec<G, E>> where
|
||||
/// Load spec give shared params and spec factory.
|
||||
pub fn load_spec<F, G, E>(cli: &SharedParams, factory: F) -> error::Result<ChainSpec<G, E>> where
|
||||
G: RuntimeGenesis,
|
||||
E: ChainSpecExtension,
|
||||
F: FnOnce(&str) -> Result<Option<ChainSpec<G, E>>, String>,
|
||||
|
||||
Reference in new issue
Block a user