X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FChannelUpdate.ts;fp=ts%2Fstructs%2FChannelUpdate.ts;h=524e9a54caf166981771b46f9071ff4cc5d2ef55;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=9a8244da910bb8595ae8f5c7a5d2cff321b58e50;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/ChannelUpdate.ts b/ts/structs/ChannelUpdate.ts index 9a8244da..524e9a54 100644 --- a/ts/structs/ChannelUpdate.ts +++ b/ts/structs/ChannelUpdate.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public ChannelUpdate clone() { number ret = bindings.ChannelUpdate_clone(this.ptr); const ret_hu_conv: ChannelUpdate = new ChannelUpdate(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -36,6 +37,7 @@ import * as bindings from '../bindings' // TODO: figure out location public UnsignedChannelUpdate get_contents() { number ret = bindings.ChannelUpdate_get_contents(this.ptr); const ret_hu_conv: UnsignedChannelUpdate = new UnsignedChannelUpdate(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -47,6 +49,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static ChannelUpdate constructor_new(Uint8Array signature_arg, UnsignedChannelUpdate contents_arg) { number ret = bindings.ChannelUpdate_new(signature_arg, contents_arg == null ? 0 : contents_arg.ptr & ~1); const ret_hu_conv: ChannelUpdate = new ChannelUpdate(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); ret_hu_conv.ptrs_to.add(contents_arg); return ret_hu_conv; } @@ -59,6 +62,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static ChannelUpdate constructor_read(Uint8Array ser) { number ret = bindings.ChannelUpdate_read(ser); const ret_hu_conv: ChannelUpdate = new ChannelUpdate(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }