X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=inline;f=ts%2Fstructs%2FQueryShortChannelIds.ts;h=fe6f93f900dbb907008d793b0f79ac0b9aae808b;hb=9e8763c71cd61d55be7c869d973524f75209a3f3;hp=3c2efc5bc07d51d8688f6aeed6bcf79aa8b9bea0;hpb=22f5f4208b1f3b5542292250f1612b944f5cd7fd;p=ldk-java diff --git a/ts/structs/QueryShortChannelIds.ts b/ts/structs/QueryShortChannelIds.ts index 3c2efc5b..fe6f93f9 100644 --- a/ts/structs/QueryShortChannelIds.ts +++ b/ts/structs/QueryShortChannelIds.ts @@ -18,12 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.QueryShortChannelIds_free(this.ptr); } } - public QueryShortChannelIds clone() { - number ret = bindings.QueryShortChannelIds_clone(this.ptr); - const ret_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, ret); - return ret_hu_conv; - } - public Uint8Array get_chain_hash() { Uint8Array ret = bindings.QueryShortChannelIds_get_chain_hash(this.ptr); return ret; @@ -40,6 +34,14 @@ import * as bindings from '../bindings' // TODO: figure out location public static QueryShortChannelIds constructor_new(Uint8Array chain_hash_arg, number[] short_channel_ids_arg) { number ret = bindings.QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg); const ret_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public QueryShortChannelIds clone() { + number ret = bindings.QueryShortChannelIds_clone(this.ptr); + const ret_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; }