X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FAcceptChannel.ts;fp=ts%2Fstructs%2FAcceptChannel.ts;h=e9719e48e7f96741cc26c17f7265badf62c07185;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=bcd54516bfab8732647fe558d425068d44d692fb;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/AcceptChannel.ts b/ts/structs/AcceptChannel.ts index bcd54516..e9719e48 100644 --- a/ts/structs/AcceptChannel.ts +++ b/ts/structs/AcceptChannel.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public AcceptChannel clone() { number ret = bindings.AcceptChannel_clone(this.ptr); const ret_hu_conv: AcceptChannel = new AcceptChannel(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -158,6 +159,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static AcceptChannel constructor_read(Uint8Array ser) { number ret = bindings.AcceptChannel_read(ser); const ret_hu_conv: AcceptChannel = new AcceptChannel(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }