X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FUpdateFailMalformedHTLC.ts;fp=ts%2Fstructs%2FUpdateFailMalformedHTLC.ts;h=6068882e57f1a79c7a80ccedb45c5b49401e780c;hb=246459dcbc3be28c38b4951140a5933f4b3aa024;hp=52b6a71d572b4caddfedd18c11f841d4db8342e1;hpb=b52dde859c138f9257499496749d1eb89f9f6f43;p=ldk-java diff --git a/ts/structs/UpdateFailMalformedHTLC.ts b/ts/structs/UpdateFailMalformedHTLC.ts index 52b6a71d..6068882e 100644 --- a/ts/structs/UpdateFailMalformedHTLC.ts +++ b/ts/structs/UpdateFailMalformedHTLC.ts @@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.UpdateFailMalformedHTLC_free(this.ptr); } } - public UpdateFailMalformedHTLC clone() { - number ret = bindings.UpdateFailMalformedHTLC_clone(this.ptr); - const ret_hu_conv: UpdateFailMalformedHTLC = new UpdateFailMalformedHTLC(null, ret); - ret_hu_conv.ptrs_to.add(this); - return ret_hu_conv; - } - public Uint8Array get_channel_id() { Uint8Array ret = bindings.UpdateFailMalformedHTLC_get_channel_id(this.ptr); return ret; @@ -52,15 +45,21 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.UpdateFailMalformedHTLC_set_failure_code(this.ptr, val); } + public UpdateFailMalformedHTLC clone() { + number ret = bindings.UpdateFailMalformedHTLC_clone(this.ptr); + const ret_hu_conv: UpdateFailMalformedHTLC = new UpdateFailMalformedHTLC(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public Uint8Array write() { Uint8Array ret = bindings.UpdateFailMalformedHTLC_write(this.ptr); return ret; } - public static UpdateFailMalformedHTLC constructor_read(Uint8Array ser) { + public static Result_UpdateFailMalformedHTLCDecodeErrorZ constructor_read(Uint8Array ser) { number ret = bindings.UpdateFailMalformedHTLC_read(ser); - const ret_hu_conv: UpdateFailMalformedHTLC = new UpdateFailMalformedHTLC(null, ret); - ret_hu_conv.ptrs_to.add(ret_hu_conv); + Result_UpdateFailMalformedHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailMalformedHTLCDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }