diff options
| author | reemuru <rimuru@hiahatf.org> | 2022-05-05 10:17:36 -0500 |
|---|---|---|
| committer | reemuru <rimuru@hiahatf.org> | 2022-05-05 10:18:15 -0500 |
| commit | cddf3c3cdb4c8a27f9dded3344762e48ad13301f (patch) | |
| tree | 1e632924ced3e2f0390c89596e766678c6fb602d | |
| parent | 002fe8eefa5616ee7eb7c21a4dc827e357f3fcb0 (diff) | |
| download | monzero-gui-cddf3c3cdb4c8a27f9dded3344762e48ad13301f.tar.gz monzero-gui-cddf3c3cdb4c8a27f9dded3344762e48ad13301f.tar.xz monzero-gui-cddf3c3cdb4c8a27f9dded3344762e48ad13301f.zip | |
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")
| -rw-r--r-- | main.qml | 2 | ||||
| -rw-r--r-- | pages/History.qml | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |
