mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
Merge pull request #1865
3c0f269
Transfer: remove ability to transfer with detached short payment ids (selsta)
This commit is contained in:
commit
2207fd5b29
1 changed files with 2 additions and 2 deletions
|
@ -307,7 +307,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
|
||||
|
@ -395,7 +395,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
|
||||
|
|
Loading…
Reference in a new issue