X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FReplyShortChannelIdsEnd.ts;h=ebcb2914a57f061e169eceefff9917aea6c7c5a7;hb=9e8763c71cd61d55be7c869d973524f75209a3f3;hp=9ab50feada61dfd15d7bee6ea4ceb037a21e0971;hpb=acecce750cf1159a51f9d1a4dbfd717520739e92;p=ldk-java diff --git a/ts/structs/ReplyShortChannelIdsEnd.ts b/ts/structs/ReplyShortChannelIdsEnd.ts index 9ab50fea..ebcb2914 100644 --- a/ts/structs/ReplyShortChannelIdsEnd.ts +++ b/ts/structs/ReplyShortChannelIdsEnd.ts @@ -18,12 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ReplyShortChannelIdsEnd_free(this.ptr); } } - public ReplyShortChannelIdsEnd clone() { - number ret = bindings.ReplyShortChannelIdsEnd_clone(this.ptr); - const ret_hu_conv: ReplyShortChannelIdsEnd = new ReplyShortChannelIdsEnd(null, ret); - return ret_hu_conv; - } - public Uint8Array get_chain_hash() { Uint8Array ret = bindings.ReplyShortChannelIdsEnd_get_chain_hash(this.ptr); return ret; @@ -45,6 +39,14 @@ import * as bindings from '../bindings' // TODO: figure out location public static ReplyShortChannelIdsEnd constructor_new(Uint8Array chain_hash_arg, boolean full_information_arg) { number ret = bindings.ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg); const ret_hu_conv: ReplyShortChannelIdsEnd = new ReplyShortChannelIdsEnd(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public ReplyShortChannelIdsEnd clone() { + number ret = bindings.ReplyShortChannelIdsEnd_clone(this.ptr); + const ret_hu_conv: ReplyShortChannelIdsEnd = new ReplyShortChannelIdsEnd(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; }