X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FHTLCUpdate.ts;h=3eaef5532f1a26052442c082f54cff93ddcd4ca3;hb=b3302d48f4dec85e9d23d9b6324d33b7c8619770;hp=52dd102ee00be0cbefd4f284162298633a226504;hpb=22f5f4208b1f3b5542292250f1612b944f5cd7fd;p=ldk-java diff --git a/ts/structs/HTLCUpdate.ts b/ts/structs/HTLCUpdate.ts index 52dd102e..3eaef553 100644 --- a/ts/structs/HTLCUpdate.ts +++ b/ts/structs/HTLCUpdate.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public HTLCUpdate clone() { number ret = bindings.HTLCUpdate_clone(this.ptr); const ret_hu_conv: HTLCUpdate = new HTLCUpdate(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -29,9 +30,9 @@ import * as bindings from '../bindings' // TODO: figure out location return ret; } - public static HTLCUpdate constructor_read(Uint8Array ser) { + public static Result_HTLCUpdateDecodeErrorZ constructor_read(Uint8Array ser) { number ret = bindings.HTLCUpdate_read(ser); - const ret_hu_conv: HTLCUpdate = new HTLCUpdate(null, ret); + Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }