From cddf3c3cdb4c8a27f9dded3344762e48ad13301f Mon Sep 17 00:00:00 2001 From: reemuru Date: Thu, 5 May 2022 10:17:36 -0500 Subject: [PATCH] History: fix payment proof button Adding support for reserve proof added an additional argument to the getProofClicked signal. The payment proof button on the transaction list from history.qml does not pass this argument and fails with insufficient argument error. Fixes: 0f67580e ("Advanced: ReserveProof: Add support for reserve proof") --- main.qml | 2 +- pages/History.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.qml b/main.qml index 18249c7b..de280b56 100644 --- a/main.qml +++ b/main.qml @@ -999,7 +999,7 @@ ApplicationWindow { // called on "getProof" function handleGetProof(txid, address, message, amount) { - if (amount.length > 0) { + if (amount !== null && amount.length > 0) { var result = currentWallet.getReserveProof(false, currentWallet.currentSubaddressAccount, walletManager.amountFromString(amount), message) txProofComputed(null, result) } else { diff --git a/pages/History.qml b/pages/History.qml index efdf5931..48befeaa 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -1720,7 +1720,7 @@ Rectangle { } console.log("getProof: Generate clicked: txid " + hash + ", address " + address); - middlePanel.getProofClicked(hash, address, ''); + middlePanel.getProofClicked(hash, address, '', null); informationPopup.title = qsTr("Payment proof") + translationManager.emptyString; informationPopup.text = qsTr("Generating payment proof") + "..." + translationManager.emptyString; informationPopup.onCloseCallback = null