fix(wallet): cannot sing tx sent from imported key pair if the profile is migrated to keycard

fixes: #16901
This commit is contained in:
Sale Djenic 2024-12-06 09:43:54 +01:00 committed by saledjenic
parent 9fcaaaa94c
commit 017bae3a51

View File

@ -269,7 +269,9 @@ method prepareSignaturesForTransactions*(self:Module, txForSigning: RouterTransa
self.tmpSendTransactionDetails.resolvedSignatures[h] = ("", "", "")
self.signOnKeycard()
else:
let finalPassword = hashPassword(self.tmpSendTransactionDetails.password)
var finalPassword = self.tmpSendTransactionDetails.password
if not singletonInstance.userProfile.getIsKeycardUser():
finalPassword = hashPassword(self.tmpSendTransactionDetails.password)
for h in txForSigning.signingDetails.hashes:
self.tmpSendTransactionDetails.resolvedSignatures[h] = ("", "", "")
var