X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FOutPoint.ts;fp=ts%2Fstructs%2FOutPoint.ts;h=decbf7b744897d63ce403fff6ea7fbb392b066e8;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=1ceb657f476c0ff29cb440501094351df4c546af;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/OutPoint.ts b/ts/structs/OutPoint.ts index 1ceb657f..decbf7b7 100644 --- a/ts/structs/OutPoint.ts +++ b/ts/structs/OutPoint.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public OutPoint clone() { number ret = bindings.OutPoint_clone(this.ptr); const ret_hu_conv: OutPoint = new OutPoint(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -45,6 +46,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static OutPoint constructor_new(Uint8Array txid_arg, number index_arg) { number ret = bindings.OutPoint_new(txid_arg, index_arg); const ret_hu_conv: OutPoint = new OutPoint(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } @@ -61,6 +63,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static OutPoint constructor_read(Uint8Array ser) { number ret = bindings.OutPoint_read(ser); const ret_hu_conv: OutPoint = new OutPoint(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }