From 3c0f269c64c125bd6e36b812a6aac42a7ce6cc0b Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 27 Dec 2018 01:18:19 +0100 Subject: [PATCH] Transfer: remove ability to transfer with detached short payment ids --- pages/Transfer.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 0a1693ef..d9f2a505 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -313,7 +313,7 @@ Rectangle { LineEditMulti { id: paymentIdLine fontBold: true - placeholderText: qsTr("16 or 64 hexadecimal characters") + translationManager.emptyString + placeholderText: qsTr("64 hexadecimal characters") + translationManager.emptyString Layout.fillWidth: true wrapMode: Text.WrapAnywhere addressValidation: false @@ -401,7 +401,7 @@ Rectangle { var amount_ok = amount.length > 0 var address_ok = walletManager.addressValid(address, nettype) - var payment_id_ok = payment_id.length == 0 || walletManager.paymentIdValid(payment_id) + var payment_id_ok = payment_id.length == 0 || (payment_id.length == 64 && walletManager.paymentIdValid(payment_id)) var ipid = walletManager.paymentIdFromAddress(address, nettype) if (ipid.length > 0 && payment_id.length > 0) payment_id_ok = false