We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0d2b6 commit bb87921Copy full SHA for bb87921
bindings/kotlin/ldk-node-jvm/lib/src/test/kotlin/org/lightningdevkit/ldknode/LibraryTest.kt
@@ -281,8 +281,15 @@ class LibraryTest {
281
else -> return
282
}
283
284
- val description = Bolt11InvoiceDescription.Direct("asdf")
+ val description = Bolt11InvoiceDescription.Direct("")
285
val invoice = node2.bolt11Payment().receive(2500000u, description, 9217u)
286
+
287
+ val asdf = invoice.description();
288
+ println("Got event: $asdf")
289
+ when (asdf) {
290
+ is Bolt11InvoiceDescription.Direct -> println("DIRECT")
291
+ is Bolt11InvoiceDescription.Hash -> println("HASH")
292
+ }
293
294
node1.bolt11Payment().send(invoice, null)
295
0 commit comments