X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FUnsignedChannelUpdate.java;h=936895d0755aba05f0f0eacbbbf0fb9c2adb889d;hb=90f8a21c87ba652884d5b94404b9b24a18f0cefc;hp=d9ca14447338eb2832baa589a4477c9c9c43a3ba;hpb=76b59fb93494e68d9b02d204c9ed9a153c73dd9b;p=ldk-java diff --git a/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java b/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java index d9ca1444..936895d0 100644 --- a/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java +++ b/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java @@ -93,9 +93,8 @@ 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; }