diff --git a/electrum/gui/qml/qeinvoice.py b/electrum/gui/qml/qeinvoice.py index f08650440..af6a7d524 100644 --- a/electrum/gui/qml/qeinvoice.py +++ b/electrum/gui/qml/qeinvoice.py @@ -655,7 +655,10 @@ class QEInvoiceParser(QEInvoice): return if not self._effectiveInvoice.amount_msat and not self.amountOverride.isEmpty: - self._effectiveInvoice.amount_msat = self.amountOverride.satsInt * 1000 + if self.invoiceType == QEInvoice.Type.OnchainInvoice and self.amountOverride.isMax: + self._effectiveInvoice.amount_msat = '!' + else: + self._effectiveInvoice.amount_msat = self.amountOverride.satsInt * 1000 self.canSave = False