You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
types: re-export LDK's PaidBolt12Invoice directly for non-uniffi
This patch removes the custom PaidBolt12Invoice type and its
Writeable/Readable implementations for non-uniffi builds, instead
re-exporting LDK's type directly.
Problem:
We were reimplementing serialization for PaidBolt12Invoice when
LDK already provides it via impl_writeable_tlv_based_enum!. This
adds unnecessary boilerplate and potential for bugs.
Solution:
For non-uniffi builds, simply re-export lightning::events::PaidBolt12Invoice.
This uses LDK's existing serialization and avoids code duplication.
For uniffi builds, we still need our own struct type due to UniFFI
limitations with enum variant data containing Objects.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments