[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / Result_NoneLightningErrorZ.cs
index 68b4743435442c4c697976d881c8b1da83b36a0f..a69057fb90677fc78915e53546bfadc448f11335 100644 (file)
@@ -47,7 +47,7 @@ public class Result_NoneLightningErrorZ : CommonBase {
         * Creates a new CResult_NoneLightningErrorZ in the error state.
         */
        public static Result_NoneLightningErrorZ err(org.ldk.structs.LightningError e) {
-               long ret = bindings.CResult_NoneLightningErrorZ_err(e == null ? 0 : e.ptr);
+               long ret = bindings.CResult_NoneLightningErrorZ_err(e.ptr);
                GC.KeepAlive(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);