X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FHTLCUpdate.ts;h=3eaef5532f1a26052442c082f54cff93ddcd4ca3;hb=9e8763c71cd61d55be7c869d973524f75209a3f3;hp=075dc2db1e94d13708282a58907ef2a7883245a0;hpb=2f243794d7f279cdc81628a94533b70404bbe888;p=ldk-java diff --git a/ts/structs/HTLCUpdate.ts b/ts/structs/HTLCUpdate.ts index 075dc2db..3eaef553 100644 --- a/ts/structs/HTLCUpdate.ts +++ b/ts/structs/HTLCUpdate.ts @@ -30,10 +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); - ret_hu_conv.ptrs_to.add(ret_hu_conv); + Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }