Skip to content

Commit

Permalink
Merge branch 'main' into refactor/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 authored Feb 26, 2025
2 parents 4b88e3d + e2fa40d commit 4b4feef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src-tauri/src/internal_wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ impl InternalWallet {
Some(p) => p.clone(),
None => return Err(anyhow!("No config path found")),
};
let passphrase = CredentialManager::default_with_dir(path)

let path_parent = path
.parent()
.ok_or_else(|| anyhow!("Failed to get parent directory of wallet config file"))?;

let passphrase = CredentialManager::default_with_dir(path_parent.to_path_buf())
.get_credentials()?
.tari_seed_passphrase;

Expand Down

0 comments on commit 4b4feef

Please sign in to comment.