Skip to content

Commit

Permalink
chore: fix type issues after lightning-kmp update
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Feb 6, 2024
1 parent ab7c1c5 commit 267faa6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public final class InvoiceUtils {
public static Mono<PaymentRequest> decodeInvoice(String invoice) {
return Mono.fromCallable(() -> {
try {
return PaymentRequest.Companion.read(invoice);
return PaymentRequest.Companion.read(invoice).get();
} catch (Exception e) {
// exception can be of type IllegalArgumentException, ArrayIndexOutOfBoundsException, etc..
throw new IllegalStateException("Failed to decode invoice.", e);
Expand Down

0 comments on commit 267faa6

Please sign in to comment.