Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit be1b171

Browse files
committed
payreq: replace 'lightning://' with 'lightning' on payment requests'
1 parent ad06b2e commit be1b171

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/lightning-components/QRCode/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const QRCode = {
1414
)
1515
},
1616
lightning: ({ paymentRequest }) => {
17-
paymentRequest = paymentRequest.replace('lightning://', 'lightning:')
1817
const svg = qrImage.svgObject(paymentRequest, { type: 'svg' })
1918

2019
return (

packages/lightning-core/helpers/paymentRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const prefix = 'lightning://'
1+
const prefix = 'lightning:'
22

33
export const decoratePaymentRequest = (pr) => {
44
return prefix + pr

0 commit comments

Comments
 (0)