[C#] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1
[ldk-java] / c_sharp / src / org / ldk / structs / Result_ChannelReadyDecodeErrorZ.cs
index b7a084d5a8e2cea4920c9ae6a126ed4413e307e1..0bbd1bc93805b403db6cd86a8e4f3e52d2044074 100644 (file)
@@ -42,7 +42,7 @@ public class Result_ChannelReadyDecodeErrorZ : CommonBase {
         * Creates a new CResult_ChannelReadyDecodeErrorZ in the success state.
         */
        public static Result_ChannelReadyDecodeErrorZ ok(org.ldk.structs.ChannelReady o) {
-               long ret = bindings.CResult_ChannelReadyDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+               long ret = bindings.CResult_ChannelReadyDecodeErrorZ_ok(o.ptr);
                GC.KeepAlive(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ChannelReadyDecodeErrorZ ret_hu_conv = Result_ChannelReadyDecodeErrorZ.constr_from_ptr(ret);
@@ -58,6 +58,7 @@ public class Result_ChannelReadyDecodeErrorZ : CommonBase {
                GC.KeepAlive(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ChannelReadyDecodeErrorZ ret_hu_conv = Result_ChannelReadyDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(e); };
                return ret_hu_conv;
        }