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