From 8bbf2bfcbbcbb8302022eebf65cfb5df8b4e33ad Mon Sep 17 00:00:00 2001 From: reemuru Date: Tue, 15 Mar 2022 04:03:34 -0500 Subject: [PATCH] Transfer: fix offline signing Remove logic for processing an array to derive the confirmation. Use confirmation from the transaction object. --- pages/Transfer.qml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 0aa14500..f7551811 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -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