Bindings updates
[ldk-java] / src / main / java / org / ldk / structs / UnsignedChannelUpdate.java
index d9ca14447338eb2832baa589a4477c9c9c43a3ba..86ad7499d2640004fff7e265466335981d419bb8 100644 (file)
@@ -14,10 +14,10 @@ public class UnsignedChannelUpdate extends CommonBase {
                if (ptr != 0) { bindings.UnsignedChannelUpdate_free(ptr); }
        }
 
-       public static UnsignedChannelUpdate constructor_clone(UnsignedChannelUpdate orig) {
-               long ret = bindings.UnsignedChannelUpdate_clone(orig == null ? 0 : orig.ptr & ~1);
+       public UnsignedChannelUpdate clone() {
+               long ret = bindings.UnsignedChannelUpdate_clone(this.ptr);
                UnsignedChannelUpdate ret_hu_conv = new UnsignedChannelUpdate(null, ret);
-               ret_hu_conv.ptrs_to.add(orig);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -93,15 +93,14 @@ public class UnsignedChannelUpdate extends CommonBase {
                bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this.ptr, val);
        }
 
-       public byte[] write(UnsignedChannelUpdate obj) {
-               byte[] ret = bindings.UnsignedChannelUpdate_write(obj == null ? 0 : obj.ptr & ~1);
-               this.ptrs_to.add(obj);
+       public byte[] write() {
+               byte[] ret = bindings.UnsignedChannelUpdate_write(this.ptr);
                return ret;
        }
 
-       public static UnsignedChannelUpdate constructor_read(byte[] ser) {
+       public static Result_UnsignedChannelUpdateDecodeErrorZ constructor_read(byte[] ser) {
                long ret = bindings.UnsignedChannelUpdate_read(ser);
-               UnsignedChannelUpdate ret_hu_conv = new UnsignedChannelUpdate(null, ret);
+               Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }