X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FUnsignedChannelUpdate.ts;fp=ts%2Fstructs%2FUnsignedChannelUpdate.ts;h=4accac621135cd9494a3118abf0a0abfef5e4522;hb=246459dcbc3be28c38b4951140a5933f4b3aa024;hp=133bc91f19d878843afb9d80fd01b06a91a2a4d7;hpb=b52dde859c138f9257499496749d1eb89f9f6f43;p=ldk-java diff --git a/ts/structs/UnsignedChannelUpdate.ts b/ts/structs/UnsignedChannelUpdate.ts index 133bc91f..4accac62 100644 --- a/ts/structs/UnsignedChannelUpdate.ts +++ b/ts/structs/UnsignedChannelUpdate.ts @@ -18,13 +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); - ret_hu_conv.ptrs_to.add(this); - return ret_hu_conv; - } - public Uint8Array get_chain_hash() { Uint8Array ret = bindings.UnsignedChannelUpdate_get_chain_hash(this.ptr); return ret; @@ -97,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;