[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / GossipSync.cs
index 65d547d864f67cf5c86178c2c09875bf6dd67076..c26c54f9eeef77af4f0842ec53c825c8db521e90 100644 (file)
@@ -54,7 +54,7 @@ public class GossipSync : CommonBase {
         * Utility method to constructs a new P2P-variant GossipSync
         */
        public static GossipSync p2_p(org.ldk.structs.P2PGossipSync a) {
-               long ret = bindings.GossipSync_p2_p(a == null ? 0 : a.ptr);
+               long ret = bindings.GossipSync_p2_p(a.ptr);
                GC.KeepAlive(a);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.GossipSync ret_hu_conv = org.ldk.structs.GossipSync.constr_from_ptr(ret);
@@ -67,7 +67,7 @@ public class GossipSync : CommonBase {
         * Utility method to constructs a new Rapid-variant GossipSync
         */
        public static GossipSync rapid(org.ldk.structs.RapidGossipSync a) {
-               long ret = bindings.GossipSync_rapid(a == null ? 0 : a.ptr);
+               long ret = bindings.GossipSync_rapid(a.ptr);
                GC.KeepAlive(a);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.GossipSync ret_hu_conv = org.ldk.structs.GossipSync.constr_from_ptr(ret);