X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FUnsignedChannelUpdate.java;h=70c9749ada406a2d2b51a96a4d3cdeead71330a4;hb=a9b82019e7ffa7d32d44943133bb64e1197bd2f1;hp=936895d0755aba05f0f0eacbbbf0fb9c2adb889d;hpb=55fbcecedad3fd98420db299c2177fb3f40d607e;p=ldk-java diff --git a/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java b/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java index 936895d0..70c9749a 100644 --- a/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java +++ b/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java @@ -14,10 +14,9 @@ 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); return ret_hu_conv; } @@ -98,9 +97,9 @@ public class UnsignedChannelUpdate extends CommonBase { 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; }