mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
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:
parent
002fe8eefa
commit
cddf3c3cdb
2 changed files with 2 additions and 2 deletions
2
main.qml
2
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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue