X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FUpdateFailMalformedHTLC.ts;h=3b894fb18f3c2a60ea125349cf392511c7d19506;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=6068882e57f1a79c7a80ccedb45c5b49401e780c;hpb=e30b350e325e7d517ea744578876d473839ad495;p=ldk-java diff --git a/ts/structs/UpdateFailMalformedHTLC.ts b/ts/structs/UpdateFailMalformedHTLC.ts index 6068882e..3b894fb1 100644 --- a/ts/structs/UpdateFailMalformedHTLC.ts +++ b/ts/structs/UpdateFailMalformedHTLC.ts @@ -24,7 +24,7 @@ import * as bindings from '../bindings' // TODO: figure out location } public void set_channel_id(Uint8Array val) { - bindings.UpdateFailMalformedHTLC_set_channel_id(this.ptr, val); + bindings.UpdateFailMalformedHTLC_set_channel_id(this.ptr, InternalUtils.check_arr_len(val, 32)); } public number get_htlc_id() { @@ -45,6 +45,11 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.UpdateFailMalformedHTLC_set_failure_code(this.ptr, val); } + public number clone_ptr() { + number ret = bindings.UpdateFailMalformedHTLC_clone_ptr(this.ptr); + return ret; + } + public UpdateFailMalformedHTLC clone() { number ret = bindings.UpdateFailMalformedHTLC_clone(this.ptr); const ret_hu_conv: UpdateFailMalformedHTLC = new UpdateFailMalformedHTLC(null, ret);