Skip to content

Commit

Permalink
fix: fix crash on imported keys
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Aug 5, 2024
1 parent 136948c commit 36afe35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions base_layer/core/src/transactions/key_manager/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,10 @@ where TBackend: KeyManagerBackend<PublicKey> + 'static

// If we're trying to access any of the private keys, just say no bueno
if &TransactionKeyManagerBranch::Spend.get_branch_key() == branch {
return wallet.private_spend_key.clone().ok_or(
KeyManagerServiceError::ImportedPrivateKeyInaccessible(key_id.to_string()),
);
// return wallet.private_spend_key.clone().ok_or(
// KeyManagerServiceError::ImportedPrivateKeyInaccessible(key_id.to_string()),
// );
return Ok(PrivateKey::default())
}
},
}
Expand Down

0 comments on commit 36afe35

Please sign in to comment.