X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FUnsignedChannelUpdate.ts;h=4accac621135cd9494a3118abf0a0abfef5e4522;hb=75bc9cf63b967c96dc3e22d536ddd434395a3790;hp=a002dfc2af732fd3bef4bab1af61bfb4c914c745;hpb=acecce750cf1159a51f9d1a4dbfd717520739e92;p=ldk-java diff --git a/ts/structs/UnsignedChannelUpdate.ts b/ts/structs/UnsignedChannelUpdate.ts index a002dfc2..4accac62 100644 --- a/ts/structs/UnsignedChannelUpdate.ts +++ b/ts/structs/UnsignedChannelUpdate.ts @@ -18,12 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.UnsignedChannelUpdate_free(this.ptr); } } - public UnsignedChannelUpdate clone() { - number ret = bindings.UnsignedChannelUpdate_clone(this.ptr); - const ret_hu_conv: UnsignedChannelUpdate = new UnsignedChannelUpdate(null, ret); - return ret_hu_conv; - } - public Uint8Array get_chain_hash() { Uint8Array ret = bindings.UnsignedChannelUpdate_get_chain_hash(this.ptr); return ret; @@ -96,6 +90,13 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this.ptr, val); } + public UnsignedChannelUpdate clone() { + number ret = bindings.UnsignedChannelUpdate_clone(this.ptr); + const ret_hu_conv: UnsignedChannelUpdate = new UnsignedChannelUpdate(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public Uint8Array write() { Uint8Array ret = bindings.UnsignedChannelUpdate_write(this.ptr); return ret;