From: Matt Corallo Date: Fri, 6 Oct 2023 17:53:30 +0000 (+0000) Subject: [TS] Handle from-hu string array conversions X-Git-Tag: v0.0.117.0~6 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=eb8cafbbe3799877aaca271a271debc839ab07d2;p=ldk-java [TS] Handle from-hu string array conversions --- diff --git a/typescript_strings.py b/typescript_strings.py index 92c734ac..3dd8d53b 100644 --- a/typescript_strings.py +++ b/typescript_strings.py @@ -857,12 +857,10 @@ import * as bindings from '../bindings.mjs' return ("bindings.encodeUint8Array(" + inner + ")", "") elif mapped_ty.c_ty == "uint16_t" or mapped_ty.c_ty == "int16_t": return ("bindings.encodeUint16Array(" + inner + ")", "") - elif mapped_ty.c_ty == "uint32_t": + elif mapped_ty.c_ty == "uint32_t" or mapped_ty.rust_obj == "LDKStr": return ("bindings.encodeUint32Array(" + inner + ")", "") elif mapped_ty.c_ty == "int64_t" or mapped_ty.c_ty == "uint64_t": return ("bindings.encodeUint64Array(" + inner + ")", "") - elif mapped_ty.rust_obj == "LDKStr": - return ("XXX-unused", "") else: print(mapped_ty.c_ty) assert False