X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FHTLCUpdate.ts;fp=ts%2Fstructs%2FHTLCUpdate.ts;h=075dc2db1e94d13708282a58907ef2a7883245a0;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=52dd102ee00be0cbefd4f284162298633a226504;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/HTLCUpdate.ts b/ts/structs/HTLCUpdate.ts index 52dd102e..075dc2db 100644 --- a/ts/structs/HTLCUpdate.ts +++ b/ts/structs/HTLCUpdate.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public HTLCUpdate clone() { number ret = bindings.HTLCUpdate_clone(this.ptr); const ret_hu_conv: HTLCUpdate = new HTLCUpdate(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -32,6 +33,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static HTLCUpdate constructor_read(Uint8Array ser) { number ret = bindings.HTLCUpdate_read(ser); const ret_hu_conv: HTLCUpdate = new HTLCUpdate(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }