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")
This commit is contained in:
reemuru 2022-05-05 10:17:36 -05:00
parent 002fe8eefa
commit cddf3c3cdb
No known key found for this signature in database
GPG key ID: 5EDBFEFFA9E9A7AB
2 changed files with 2 additions and 2 deletions

View file

@ -999,7 +999,7 @@ ApplicationWindow {
// called on "getProof" // called on "getProof"
function handleGetProof(txid, address, message, amount) { 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) var result = currentWallet.getReserveProof(false, currentWallet.currentSubaddressAccount, walletManager.amountFromString(amount), message)
txProofComputed(null, result) txProofComputed(null, result)
} else { } else {

View file

@ -1720,7 +1720,7 @@ Rectangle {
} }
console.log("getProof: Generate clicked: txid " + hash + ", address " + address); 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.title = qsTr("Payment proof") + translationManager.emptyString;
informationPopup.text = qsTr("Generating payment proof") + "..." + translationManager.emptyString; informationPopup.text = qsTr("Generating payment proof") + "..." + translationManager.emptyString;
informationPopup.onCloseCallback = null informationPopup.onCloseCallback = null