X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FHTLCUpdate.ts;h=23f9d9a3d9509e19e19fc6e5f5cccbfeabba67b5;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=52dd102ee00be0cbefd4f284162298633a226504;hpb=acecce750cf1159a51f9d1a4dbfd717520739e92;p=ldk-java diff --git a/ts/structs/HTLCUpdate.ts b/ts/structs/HTLCUpdate.ts index 52dd102e..23f9d9a3 100644 --- a/ts/structs/HTLCUpdate.ts +++ b/ts/structs/HTLCUpdate.ts @@ -18,9 +18,15 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.HTLCUpdate_free(this.ptr); } } + public number clone_ptr() { + number ret = bindings.HTLCUpdate_clone_ptr(this.ptr); + return ret; + } + 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 +35,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; }