Skip to content

Commit

Permalink
Revert "Fix transfers for rotated authkeys (#241)" (#242)
Browse files Browse the repository at this point in the history
This reverts commit 43644ba.
  • Loading branch information
kalvkusk authored Feb 22, 2024
1 parent 43644ba commit 51c8693
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src-tauri/src/key_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ pub fn get_keypair(
pub fn inject_private_key_to_cfg(app_cfg_mut: &mut AppCfg) -> anyhow::Result<(), CarpeError> {
// gets the default profile
let profile = app_cfg_mut.get_profile_mut(None)?;

let pri_key = get_private_key(&profile.auth_key.derived_address()).map_err(|e| CarpeError {
let pri_key = get_private_key(&profile.account).map_err(|e| CarpeError {
category: ErrorCat::Configs,
uid: E_KEY_NOT_REGISTERED,
msg: "no keys found on OS keychain".to_string(),
Expand Down

1 comment on commit 51c8693

@zmanian
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What broke to cause this to be reverted?

It's possible to come up with a more robust fix for this

Please sign in to comment.