From: Matt Corallo Date: Wed, 1 Mar 2023 00:13:01 +0000 (+0000) Subject: Print something for custom messages in C++ demo X-Git-Tag: v0.0.114.0^2~4 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=12da50613933d348dd5b924999af72708838190c;p=ldk-c-bindings Print something for custom messages in C++ demo --- diff --git a/lightning-c-bindings/demo.cpp b/lightning-c-bindings/demo.cpp index b6a4c72..7c56dd7 100644 --- a/lightning-c-bindings/demo.cpp +++ b/lightning-c-bindings/demo.cpp @@ -431,7 +431,7 @@ LDKCVec_u8Z custom_msg_bytes(const void *this_arg) { } LDKStr custom_msg_debug(const void *this_arg) { return LDKStr { - .chars = NULL, .len = 0, .chars_is_owned = false + .chars = (const unsigned char*) "Custom Message", .len = 14, .chars_is_owned = false }; }