Skip to content

Commit b29bfd2

Browse files
authored
Merge pull request #230 from synonymdev/payment-id-fix
fix: channel id hex conversion
2 parents ffb7cfa + 09b5661 commit b29bfd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ios/Ldk.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ class Ldk: NSObject {
853853
channelManagerPersister.persistPaymentSent([
854854
"bolt11_invoice": String(paymentRequest),
855855
"description": invoice.intoSignedRaw().rawInvoice().description()?.intoInner().getA() ?? "",
856-
"payment_id": paymentId,
856+
"payment_id": Data(paymentId).hexEncodedString(),
857857
"payment_hash": Data(invoice.paymentHash() ?? []).hexEncodedString(),
858858
"amount_sat": isZeroValueInvoice ? amountSats : (invoice.amountMilliSatoshis() ?? 0) / 1000,
859859
"unix_timestamp": Int(Date().timeIntervalSince1970),

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@synonymdev/react-native-ldk",
33
"title": "React Native LDK",
4-
"version": "0.0.134",
4+
"version": "0.0.136",
55
"description": "React Native wrapper for LDK",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)