From eb8cafbbe3799877aaca271a271debc839ab07d2 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 6 Oct 2023 17:53:30 +0000 Subject: [PATCH] [TS] Handle from-hu string array conversions --- typescript_strings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.39.5