mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 20:40:27 +00:00
Transfer: remove ability to transfer with detached short payment ids
This commit is contained in:
parent
48a267f631
commit
3c0f269c64
1 changed files with 2 additions and 2 deletions
|
@ -313,7 +313,7 @@ Rectangle {
|
||||||
LineEditMulti {
|
LineEditMulti {
|
||||||
id: paymentIdLine
|
id: paymentIdLine
|
||||||
fontBold: true
|
fontBold: true
|
||||||
placeholderText: qsTr("16 or 64 hexadecimal characters") + translationManager.emptyString
|
placeholderText: qsTr("64 hexadecimal characters") + translationManager.emptyString
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
addressValidation: false
|
addressValidation: false
|
||||||
|
@ -401,7 +401,7 @@ Rectangle {
|
||||||
|
|
||||||
var amount_ok = amount.length > 0
|
var amount_ok = amount.length > 0
|
||||||
var address_ok = walletManager.addressValid(address, nettype)
|
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)
|
var ipid = walletManager.paymentIdFromAddress(address, nettype)
|
||||||
if (ipid.length > 0 && payment_id.length > 0)
|
if (ipid.length > 0 && payment_id.length > 0)
|
||||||
payment_id_ok = false
|
payment_id_ok = false
|
||||||
|
|
Loading…
Reference in a new issue