mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 06:57:58 +00:00
Expose load_spec (#4556)
This commit is contained in:
@@ -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