Update auto-generated bindings to 0.0.103
[ldk-java] / src / main / java / org / ldk / structs / AcceptChannel.java
index 78a390bc9f688958ac304b5f667de1089f90b6b1..09125fe31b528e7520fcaf7b0d758a1576b6f000 100644 (file)
@@ -234,8 +234,8 @@ public class AcceptChannel extends CommonBase {
         */
        public AcceptChannel clone() {
                long ret = bindings.AcceptChannel_clone(this.ptr);
-               if (ret >= 0 && ret < 1024) { return null; }
-               AcceptChannel ret_hu_conv = new AcceptChannel(null, ret);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               AcceptChannel ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new AcceptChannel(null, ret); }
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
@@ -253,7 +253,7 @@ public class AcceptChannel extends CommonBase {
         */
        public static Result_AcceptChannelDecodeErrorZ read(byte[] ser) {
                long ret = bindings.AcceptChannel_read(ser);
-               if (ret >= 0 && ret < 1024) { return null; }
+               if (ret >= 0 && ret <= 4096) { return null; }
                Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }