Updated bindings
[ldk-java] / src / main / java / org / ldk / structs / CommitmentUpdate.java
index 01e7a975e85964e2cdabaeed420023440a59edfd..4b9d1535c12b81452d5da331783038ec5bbd3f93 100644 (file)
@@ -14,10 +14,9 @@ public class CommitmentUpdate extends CommonBase {
                if (ptr != 0) { bindings.CommitmentUpdate_free(ptr); }
        }
 
-       public static CommitmentUpdate constructor_clone(CommitmentUpdate orig) {
-               long ret = bindings.CommitmentUpdate_clone(orig == null ? 0 : orig.ptr & ~1);
+       public CommitmentUpdate clone() {
+               long ret = bindings.CommitmentUpdate_clone(this.ptr);
                CommitmentUpdate ret_hu_conv = new CommitmentUpdate(null, ret);
-               ret_hu_conv.ptrs_to.add(orig);
                return ret_hu_conv;
        }