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