Skip to content

Commit

Permalink
fix: crash preventing user to ever recover wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
ovitrif committed Jan 12, 2024
1 parent 06b2692 commit 4e47dc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class LdkChannelManagerPersister: ChannelManagerConstructor.EventHandler {
body.putHexString("payment_id", (paymentPathFailed.payment_id as Option_ThirtyTwoBytesZ.Some).some)
body.putHexString("payment_hash", paymentPathFailed.payment_hash)
body.putBoolean("payment_failed_permanently", paymentPathFailed.payment_failed_permanently)
body.putInt("short_channel_id", (paymentPathFailed.short_channel_id as Option_u64Z.Some).some.toInt())
body.putInt("short_channel_id", (paymentPathFailed.short_channel_id as? Option_u64Z.Some)?.some?.toInt() ?: 0)
// val path = Arguments.createArray()
// paymentPathFailed.path.iterator().forEach { path.pushMap(it.asJson) }
// body.putArray("path_hops", path)
Expand Down

0 comments on commit 4e47dc5

Please sign in to comment.