X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FUpdateAddHTLC.ts;fp=ts%2Fstructs%2FUpdateAddHTLC.ts;h=862a8763a093dc86e854521cdaf8293ad9f67c05;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=52c5ed48199a19a25a176f85656e0c6f47970457;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/UpdateAddHTLC.ts b/ts/structs/UpdateAddHTLC.ts index 52c5ed48..862a8763 100644 --- a/ts/structs/UpdateAddHTLC.ts +++ b/ts/structs/UpdateAddHTLC.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public UpdateAddHTLC clone() { number ret = bindings.UpdateAddHTLC_clone(this.ptr); const ret_hu_conv: UpdateAddHTLC = new UpdateAddHTLC(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -77,6 +78,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static UpdateAddHTLC constructor_read(Uint8Array ser) { number ret = bindings.UpdateAddHTLC_read(ser); const ret_hu_conv: UpdateAddHTLC = new UpdateAddHTLC(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }