X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FReplyShortChannelIdsEnd.ts;h=9c3d2881c15e2b12f20faecff65ccd8e6d0ce72f;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=ab431a6a083c07bda3b0006bca6fa32e934d194c;hpb=e30b350e325e7d517ea744578876d473839ad495;p=ldk-java diff --git a/ts/structs/ReplyShortChannelIdsEnd.ts b/ts/structs/ReplyShortChannelIdsEnd.ts index ab431a6a..9c3d2881 100644 --- a/ts/structs/ReplyShortChannelIdsEnd.ts +++ b/ts/structs/ReplyShortChannelIdsEnd.ts @@ -24,7 +24,7 @@ import * as bindings from '../bindings' // TODO: figure out location } public void set_chain_hash(Uint8Array val) { - bindings.ReplyShortChannelIdsEnd_set_chain_hash(this.ptr, val); + bindings.ReplyShortChannelIdsEnd_set_chain_hash(this.ptr, InternalUtils.check_arr_len(val, 32)); } public boolean get_full_information() { @@ -37,12 +37,17 @@ import * as bindings from '../bindings' // TODO: figure out location } public static ReplyShortChannelIdsEnd constructor_new(Uint8Array chain_hash_arg, boolean full_information_arg) { - number ret = bindings.ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg); + number ret = bindings.ReplyShortChannelIdsEnd_new(InternalUtils.check_arr_len(chain_hash_arg, 32), full_information_arg); const ret_hu_conv: ReplyShortChannelIdsEnd = new ReplyShortChannelIdsEnd(null, ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; } + public number clone_ptr() { + number ret = bindings.ReplyShortChannelIdsEnd_clone_ptr(this.ptr); + return ret; + } + public ReplyShortChannelIdsEnd clone() { number ret = bindings.ReplyShortChannelIdsEnd_clone(this.ptr); const ret_hu_conv: ReplyShortChannelIdsEnd = new ReplyShortChannelIdsEnd(null, ret);