Skip to content

Commit 1c5451f

Browse files
committed
Swift reverse bytes for txid
1 parent df902ab commit 1c5451f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/Classes/LdkFilter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class LdkFilter: Filter {
1717
LdkEventEmitter.shared.send(
1818
withEvent: .register_tx,
1919
body: [
20-
"txid": Data(txid ?? []).hexEncodedString(),
20+
"txid": Data(Data(txid ?? []).reversed()).hexEncodedString(),
2121
"script_pubkey": Data(script_pubkey).hexEncodedString()
2222
]
2323
)

0 commit comments

Comments
 (0)