Update auto-generated bindings with new upstream.
[ldk-java] / src / main / java / org / ldk / structs / UpdateFulfillHTLC.java
index 5737572395d4e47f5f2acba54a09e210d79e7249..966392bdc871f263ef1815938dcaba7b0b91ae8c 100644 (file)
@@ -14,12 +14,6 @@ public class UpdateFulfillHTLC extends CommonBase {
                if (ptr != 0) { bindings.UpdateFulfillHTLC_free(ptr); }
        }
 
-       public UpdateFulfillHTLC clone() {
-               long ret = bindings.UpdateFulfillHTLC_clone(this.ptr);
-               UpdateFulfillHTLC ret_hu_conv = new UpdateFulfillHTLC(null, ret);
-               return ret_hu_conv;
-       }
-
        public byte[] get_channel_id() {
                byte[] ret = bindings.UpdateFulfillHTLC_get_channel_id(this.ptr);
                return ret;
@@ -50,6 +44,14 @@ public class UpdateFulfillHTLC extends CommonBase {
        public static UpdateFulfillHTLC constructor_new(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg) {
                long ret = bindings.UpdateFulfillHTLC_new(channel_id_arg, htlc_id_arg, payment_preimage_arg);
                UpdateFulfillHTLC ret_hu_conv = new UpdateFulfillHTLC(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public UpdateFulfillHTLC clone() {
+               long ret = bindings.UpdateFulfillHTLC_clone(this.ptr);
+               UpdateFulfillHTLC ret_hu_conv = new UpdateFulfillHTLC(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -58,9 +60,9 @@ public class UpdateFulfillHTLC extends CommonBase {
                return ret;
        }
 
-       public static UpdateFulfillHTLC constructor_read(byte[] ser) {
+       public static Result_UpdateFulfillHTLCDecodeErrorZ constructor_read(byte[] ser) {
                long ret = bindings.UpdateFulfillHTLC_read(ser);
-               UpdateFulfillHTLC ret_hu_conv = new UpdateFulfillHTLC(null, ret);
+               Result_UpdateFulfillHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFulfillHTLCDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }