[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / SocketAddress.cs
index 096f79f65aba15b52309aa4b5db5957942fba0cc..88754d7dacc8e2675ccb873eef3f60306fd7d708 100644 (file)
@@ -190,7 +190,7 @@ public class SocketAddress : CommonBase {
         * Utility method to constructs a new Hostname-variant SocketAddress
         */
        public static SocketAddress hostname(org.ldk.structs.Hostname hostname, short port) {
-               long ret = bindings.SocketAddress_hostname(hostname == null ? 0 : hostname.ptr, port);
+               long ret = bindings.SocketAddress_hostname(hostname.ptr, port);
                GC.KeepAlive(hostname);
                GC.KeepAlive(port);
                if (ret >= 0 && ret <= 4096) { return null; }
@@ -217,7 +217,7 @@ public class SocketAddress : CommonBase {
         * This ignores pointers and is_owned flags and looks at the values in fields.
         */
        public bool eq(org.ldk.structs.SocketAddress b) {
-               bool ret = bindings.SocketAddress_eq(this.ptr, b == null ? 0 : b.ptr);
+               bool ret = bindings.SocketAddress_eq(this.ptr, b.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(b);
                return ret;