Skip to content

Commit

Permalink
Fix PaymentRequestSerializer for new lightning-kmp API
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Jan 31, 2024
1 parent 54ba410 commit 43045e6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public object PaymentRequestSerializer : KSerializer<PaymentRequest> {
encoder.encodeString(value.write())
}

// TODO: Handle the error case here
override fun deserialize(decoder: Decoder): PaymentRequest {
return PaymentRequest.read(decoder.decodeString())
return PaymentRequest.read(decoder.decodeString()).get()
}
}

0 comments on commit 43045e6

Please sign in to comment.