Skip to content
Permalink
Browse files

fix(wallet): properly validate msat invoices

  • Loading branch information...
mrfelton committed Aug 8, 2019
1 parent ee4cef3 commit d181cc66b5daa8f75ec0b3405ad551a754dbf7a8
Showing with 1 addition and 1 deletion.
  1. +1 −1 renderer/components/UI/LightningInvoiceInput.js
@@ -48,7 +48,7 @@ class LightningInvoiceInput extends React.Component {
if (invoiceIsLn) {
try {
const invoice = decodePayReq(value)
if (!invoice || (!invoice.satoshis || !invoice.millisatoshis)) {
if (!invoice || (!invoice.satoshis && !invoice.millisatoshis)) {
throw new Error('Invalid invoice')
}
} catch (e) {

0 comments on commit d181cc6

Please sign in to comment.
You can’t perform that action at this time.