X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FHTLCOutputInCommitment.ts;fp=ts%2Fstructs%2FHTLCOutputInCommitment.ts;h=545685e5aaf153ee4a370aa2731e12b230a3a25e;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=938d16f84f2bbebb33dacf480f0b38d00b6302c1;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/HTLCOutputInCommitment.ts b/ts/structs/HTLCOutputInCommitment.ts index 938d16f8..545685e5 100644 --- a/ts/structs/HTLCOutputInCommitment.ts +++ b/ts/structs/HTLCOutputInCommitment.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public HTLCOutputInCommitment clone() { number ret = bindings.HTLCOutputInCommitment_clone(this.ptr); const ret_hu_conv: HTLCOutputInCommitment = new HTLCOutputInCommitment(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -68,6 +69,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static HTLCOutputInCommitment constructor_read(Uint8Array ser) { number ret = bindings.HTLCOutputInCommitment_read(ser); const ret_hu_conv: HTLCOutputInCommitment = new HTLCOutputInCommitment(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }