Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / OutPoint.java
index edb136126a7d606f93cd3f0b8e3e3e83c589d591..a181f35f2bed37b54ca9d0b051fa36646930472b 100644 (file)
@@ -34,7 +34,7 @@ public class OutPoint extends CommonBase {
         * The referenced transaction's txid.
         */
        public void set_txid(byte[] val) {
-               bindings.OutPoint_set_txid(this.ptr, val);
+               bindings.OutPoint_set_txid(this.ptr, InternalUtils.check_arr_len(val, 32));
        }
 
        /**
@@ -56,13 +56,18 @@ public class OutPoint extends CommonBase {
         * Constructs a new OutPoint given each field
         */
        public static OutPoint of(byte[] txid_arg, short index_arg) {
-               long ret = bindings.OutPoint_new(txid_arg, index_arg);
+               long ret = bindings.OutPoint_new(InternalUtils.check_arr_len(txid_arg, 32), index_arg);
                if (ret >= 0 && ret <= 4096) { return null; }
                OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new OutPoint(null, ret); }
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }
 
+       long clone_ptr() {
+               long ret = bindings.OutPoint_clone_ptr(this.ptr);
+               return ret;
+       }
+
        /**
         * Creates a copy of the OutPoint
         */