Skip to content

Commit

Permalink
cli fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwicky committed Oct 31, 2023
1 parent c56e089 commit 48ee579
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/commands/src/coconut/issue_credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub async fn execute(args: Args, client: SigningClient) -> anyhow::Result<()> {
bail!("the loaded config does not have an ecash key path information")
};

let Ok(ecash_keypair) = nym_pemstore::load_keypair(ecash_key_path) else {
let Ok(ecash_keypair) = nym_pemstore::load_keypair(&ecash_key_path) else {
bail!("invalid secret key in the config path")
};

Expand Down
4 changes: 2 additions & 2 deletions common/commands/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl CommonConfigsWrapper {
}
}

pub(crate) fn try_get_ecash_key(&self) -> anyhow::Result<PathBuf> {
pub(crate) fn try_get_ecash_key(&self) -> anyhow::Result<nym_pemstore::KeyPairPath> {
match self {
CommonConfigsWrapper::NymClients(cfg) => {
Ok(cfg.storage_paths.inner.keys.ecash_key_pair_path())
Expand Down Expand Up @@ -227,7 +227,7 @@ impl UnknownConfigWrapper {
}
}

pub(crate) fn try_get_ecash_key(&self) -> anyhow::Result<PathBuf> {
pub(crate) fn try_get_ecash_key(&self) -> anyhow::Result<nym_pemstore::KeyPairPath> {
todo!()
}

Expand Down

0 comments on commit 48ee579

Please sign in to comment.