Update auto-generated bindings to 0.0.103
[ldk-java] / src / main / java / org / ldk / structs / FundingCreated.java
index 40777425d86ed09a27374b1d04eede2230c762af..0585d27a0d55c24907c2383a8bae8de2d4a61756 100644 (file)
@@ -65,7 +65,7 @@ public class FundingCreated extends CommonBase {
        }
 
        /**
-        * The signature of the channel initiator (funder) on the funding transaction
+        * The signature of the channel initiator (funder) on the initial commitment transaction
         */
        public byte[] get_signature() {
                byte[] ret = bindings.FundingCreated_get_signature(this.ptr);
@@ -73,7 +73,7 @@ public class FundingCreated extends CommonBase {
        }
 
        /**
-        * The signature of the channel initiator (funder) on the funding transaction
+        * The signature of the channel initiator (funder) on the initial commitment transaction
         */
        public void set_signature(byte[] val) {
                bindings.FundingCreated_set_signature(this.ptr, val);
@@ -84,8 +84,8 @@ public class FundingCreated extends CommonBase {
         */
        public static FundingCreated of(byte[] temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg) {
                long ret = bindings.FundingCreated_new(temporary_channel_id_arg, funding_txid_arg, funding_output_index_arg, signature_arg);
-               if (ret < 1024) { return null; }
-               FundingCreated ret_hu_conv = new FundingCreated(null, ret);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               FundingCreated ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new FundingCreated(null, ret); }
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }
@@ -95,8 +95,8 @@ public class FundingCreated extends CommonBase {
         */
        public FundingCreated clone() {
                long ret = bindings.FundingCreated_clone(this.ptr);
-               if (ret < 1024) { return null; }
-               FundingCreated ret_hu_conv = new FundingCreated(null, ret);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               FundingCreated ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new FundingCreated(null, ret); }
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
@@ -114,7 +114,7 @@ public class FundingCreated extends CommonBase {
         */
        public static Result_FundingCreatedDecodeErrorZ read(byte[] ser) {
                long ret = bindings.FundingCreated_read(ser);
-               if (ret < 1024) { return null; }
+               if (ret >= 0 && ret <= 4096) { return null; }
                Result_FundingCreatedDecodeErrorZ ret_hu_conv = Result_FundingCreatedDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }