Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
FMT
  • Loading branch information
bkchr committed Oct 4, 2021
commit 30271311ebde12099b477b373ba8a2cc857da2c2
7 changes: 2 additions & 5 deletions client/cli/src/commands/insert_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ impl InsertKeyCmd {

let (keystore, public) = match self.keystore_params.keystore_config(&config_dir)? {
(_, KeystoreConfig::Path { path, password }) => {
let public = with_crypto_scheme!(
self.scheme,
to_vec(&suri, password.clone())
)?;
let public = with_crypto_scheme!(self.scheme, to_vec(&suri, password.clone()))?;
let keystore: SyncCryptoStorePtr = Arc::new(LocalKeystore::open(path, password)?);
(keystore, public)
},
Expand Down Expand Up @@ -166,7 +163,7 @@ mod tests {
"test",
"--suri",
&uri,
"--scheme=sr25519"
"--scheme=sr25519",
]);
assert!(inspect.run(&Cli).is_ok());

Expand Down