Skip to content

Commit

Permalink
fix: channel id hex conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasonvdb committed Apr 6, 2024
1 parent ffb7cfa commit 09b5661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ios/Ldk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ class Ldk: NSObject {
channelManagerPersister.persistPaymentSent([
"bolt11_invoice": String(paymentRequest),
"description": invoice.intoSignedRaw().rawInvoice().description()?.intoInner().getA() ?? "",
"payment_id": paymentId,
"payment_id": Data(paymentId).hexEncodedString(),
"payment_hash": Data(invoice.paymentHash() ?? []).hexEncodedString(),
"amount_sat": isZeroValueInvoice ? amountSats : (invoice.amountMilliSatoshis() ?? 0) / 1000,
"unix_timestamp": Int(Date().timeIntervalSince1970),
Expand Down
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@synonymdev/react-native-ldk",
"title": "React Native LDK",
"version": "0.0.134",
"version": "0.0.136",
"description": "React Native wrapper for LDK",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 09b5661

Please sign in to comment.