fix(@wallet): send modal with recipient ens

fixes #9328
This commit is contained in:
Anthony Laibe 2023-03-02 12:31:55 +01:00 committed by Anthony Laibe
parent 7db4a5ca52
commit c55fb96652
1 changed files with 13 additions and 4 deletions

View File

@ -105,9 +105,18 @@ StatusDialog {
property Timer waitTimer: Timer {
interval: 1500
onTriggered: {
let result = store.splitAndFormatAddressPrefix(recipientSelector.input.text, isBridgeTx, networkSelector.showUnpreferredNetworks)
popup.addressText = result.address
recipientSelector.input.text = result.formattedText
if (recipientSelector.isPending) {
return
}
if (d.isENSValid) {
recipientSelector.input.text = d.resolvedENSAddress
popup.addressText = d.resolvedENSAddress
} else {
let result = store.splitAndFormatAddressPrefix(recipientSelector.input.text, isBridgeTx, networkSelector.showUnpreferredNetworks)
popup.addressText = result.address
recipientSelector.input.text = result.formattedText
}
popup.recalculateRoutesAndFees()
}
}
@ -403,7 +412,7 @@ StatusDialog {
d.waitTimer.restart()
if(!d.isAddressValid) {
isPending = true
Qt.callLater(d.resolveENS, input.edit.text)
Qt.callLater(d.resolveENS, store.plainText(input.edit.text))
}
}
}