From 51a98f34ee7843043a8e93ee45639beb66494fdd Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 20 Dec 2021 07:06:04 +0000 Subject: [PATCH] Handle the new LDKTwelveBytes instead of LDKTenBytes --- genbindings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/genbindings.py b/genbindings.py index 640400ee..6c1762b1 100755 --- a/genbindings.py +++ b/genbindings.py @@ -174,10 +174,10 @@ def java_c_types(fn_arg, ret_arr_len): assert var_is_arr_regex.match(fn_arg[8:]) rust_obj = "LDKTwentyBytes" arr_access = "data" - elif fn_arg.startswith("LDKTenBytes"): - fn_arg = "uint8_t (*" + fn_arg[12:] + ")[10]" + elif fn_arg.startswith("LDKTwelveBytes"): + fn_arg = "uint8_t (*" + fn_arg[15:] + ")[12]" assert var_is_arr_regex.match(fn_arg[8:]) - rust_obj = "LDKTenBytes" + rust_obj = "LDKTwelveBytes" arr_access = "data" elif fn_arg.startswith("LDKu8slice"): fn_arg = "uint8_t (*" + fn_arg[11:] + ")[datalen]" -- 2.39.5