X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FShutdown.ts;h=0301af6b6890d0ecc899bd2255389e1be56d8bb5;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=683f9025722f05de2e6c206aef453596c65b9691;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/Shutdown.ts b/ts/structs/Shutdown.ts index 683f9025..0301af6b 100644 --- a/ts/structs/Shutdown.ts +++ b/ts/structs/Shutdown.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public Shutdown clone() { number ret = bindings.Shutdown_clone(this.ptr); const ret_hu_conv: Shutdown = new Shutdown(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 Shutdown constructor_new(Uint8Array channel_id_arg, Uint8Array scriptpubkey_arg) { number ret = bindings.Shutdown_new(channel_id_arg, scriptpubkey_arg); const ret_hu_conv: Shutdown = new Shutdown(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } @@ -56,6 +58,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static Shutdown constructor_read(Uint8Array ser) { number ret = bindings.Shutdown_read(ser); const ret_hu_conv: Shutdown = new Shutdown(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }