X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FAPIError.cs;h=8284b36353ab053a12f45ace58623d02a69ee78d;hb=152d721883552dd92925833d15687d7d64d01c35;hp=a9218c8811f76bb8508d63a1f6cbaef410a82c71;hpb=8de7213fbf663ff60322896282dad51e8ab2f001;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/APIError.cs b/c_sharp/src/org/ldk/structs/APIError.cs index a9218c88..8284b363 100644 --- a/c_sharp/src/org/ldk/structs/APIError.cs +++ b/c_sharp/src/org/ldk/structs/APIError.cs @@ -182,7 +182,7 @@ public class APIError : CommonBase { * Utility method to constructs a new IncompatibleShutdownScript-variant APIError */ public static APIError incompatible_shutdown_script(org.ldk.structs.ShutdownScript script) { - long ret = bindings.APIError_incompatible_shutdown_script(script == null ? 0 : script.ptr); + long ret = bindings.APIError_incompatible_shutdown_script(script.ptr); GC.KeepAlive(script); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.APIError ret_hu_conv = org.ldk.structs.APIError.constr_from_ptr(ret); @@ -196,7 +196,7 @@ public class APIError : CommonBase { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.APIError b) { - bool ret = bindings.APIError_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = bindings.APIError_eq(this.ptr, b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret;