Update auto-generated bindings with new upstream.
[ldk-java] / src / main / java / org / ldk / structs / FundingLocked.java
index 4439697f84b16da44478418bea75ed77a341dc09..0462f1a07c8326c9fee3e0823999bac936256687 100644 (file)
@@ -14,13 +14,6 @@ public class FundingLocked extends CommonBase {
                if (ptr != 0) { bindings.FundingLocked_free(ptr); }
        }
 
-       public FundingLocked clone() {
-               long ret = bindings.FundingLocked_clone(this.ptr);
-               FundingLocked ret_hu_conv = new FundingLocked(null, ret);
-               ret_hu_conv.ptrs_to.add(this);
-               return ret_hu_conv;
-       }
-
        public byte[] get_channel_id() {
                byte[] ret = bindings.FundingLocked_get_channel_id(this.ptr);
                return ret;
@@ -46,15 +39,21 @@ public class FundingLocked extends CommonBase {
                return ret_hu_conv;
        }
 
+       public FundingLocked clone() {
+               long ret = bindings.FundingLocked_clone(this.ptr);
+               FundingLocked ret_hu_conv = new FundingLocked(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
        public byte[] write() {
                byte[] ret = bindings.FundingLocked_write(this.ptr);
                return ret;
        }
 
-       public static FundingLocked constructor_read(byte[] ser) {
+       public static Result_FundingLockedDecodeErrorZ constructor_read(byte[] ser) {
                long ret = bindings.FundingLocked_read(ser);
-               FundingLocked ret_hu_conv = new FundingLocked(null, ret);
-               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               Result_FundingLockedDecodeErrorZ ret_hu_conv = Result_FundingLockedDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }