mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
Fix broken factory by adding keystore back. (#4840)
This commit is contained in:
@@ -50,6 +50,8 @@ where
|
||||
cli_args.shared_params.dev,
|
||||
)?;
|
||||
|
||||
sc_cli::fill_config_keystore_in_memory(&mut config)?;
|
||||
|
||||
match ChainSpec::from(config.expect_chain_spec().id()) {
|
||||
Some(ref c) if c == &ChainSpec::Development || c == &ChainSpec::LocalTestnet => {},
|
||||
_ => panic!("Factory is only supported for development and local testnet."),
|
||||
|
||||
@@ -445,7 +445,7 @@ fn input_keystore_password() -> Result<String, String> {
|
||||
}
|
||||
|
||||
/// Use in memory keystore config when it is not required at all.
|
||||
fn fill_config_keystore_in_memory<G, E>(config: &mut sc_service::Configuration<G, E>)
|
||||
pub fn fill_config_keystore_in_memory<G, E>(config: &mut sc_service::Configuration<G, E>)
|
||||
-> Result<(), String>
|
||||
{
|
||||
match &mut config.keystore {
|
||||
|
||||
Reference in New Issue
Block a user