X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FErrorMessage.ts;fp=ts%2Fstructs%2FErrorMessage.ts;h=4ad554f5a5305dd9cd7114e882b769a287106579;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=6551cc06a1696825afc3068239a10a17467b6a65;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/ErrorMessage.ts b/ts/structs/ErrorMessage.ts index 6551cc06..4ad554f5 100644 --- a/ts/structs/ErrorMessage.ts +++ b/ts/structs/ErrorMessage.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public ErrorMessage clone() { number ret = bindings.ErrorMessage_clone(this.ptr); const ret_hu_conv: ErrorMessage = new ErrorMessage(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 ErrorMessage constructor_new(Uint8Array channel_id_arg, Uint8Array data_arg) { number ret = bindings.ErrorMessage_new(channel_id_arg, data_arg); const ret_hu_conv: ErrorMessage = new ErrorMessage(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }