1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-21 12:44:14 +01:00

Transfer: fix offline signing

Remove logic for processing an array to derive the confirmation.
Use confirmation from the transaction object.
This commit is contained in:
reemuru 2022-03-15 04:03:34 -05:00
parent fd8983a7ff
commit 8bbf2bfcbb
No known key found for this signature in database
GPG Key ID: 5EDBFEFFA9E9A7AB

View File

@ -1030,24 +1030,7 @@ Rectangle {
// deleting transaction object, we don't want memleaks
transaction.destroy();
} else {
confirmationDialog.text = qsTr("\nNumber of transactions: ") + transaction.txCount
for (var i = 0; i < transaction.txCount; ++i) {
confirmationDialog.text += qsTr("\nTransaction #%1").arg(i+1)
+qsTr("\nRecipient: ") + transaction.recipientAddress[i]
+ (transaction.paymentId[i] == "" ? "" : qsTr("\n\payment ID: ") + transaction.paymentId[i])
+ qsTr("\nAmount: ") + walletManager.displayAmount(transaction.amount(i))
+ qsTr("\nFee: ") + walletManager.displayAmount(transaction.fee(i))
+ qsTr("\nRingsize: ") + (transaction.mixin(i)+1)
// TODO: add descriptions to unsigned_tx_set?
// + (transactionDescription === "" ? "" : (qsTr("\n\nDescription: ") + transactionDescription))
+ translationManager.emptyString
if (i > 0) {
confirmationDialog.text += "\n\n"
}
}
confirmationDialog.text = qsTr("\nConfirmation message:\n ") + transaction.confirmationMessage
console.log(transaction.confirmationMessage);
// Show confirmation dialog