We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d94f603 commit e6088cbCopy full SHA for e6088cb
mm2src/coins/rpc_command/offline_keys.rs
@@ -510,7 +510,9 @@ async fn offline_iguana_keys_export_internal(
510
511
let prefix_values = extract_prefix_values(&ctx, &ticker, &coin_conf)?;
512
513
- let passphrase = ctx.conf["passphrase"].as_str().unwrap_or("");
+ let passphrase = ctx.conf["passphrase"].as_str().ok_or_else(|| {
514
+ OfflineKeysError::Internal("Couldn't derive 'passphrase' from the KDF configuration.".to_owned())
515
+ })?;
516
517
let key_pair = {
518
match key_pair_from_seed(passphrase) {
0 commit comments