From: Matt Corallo Date: Mon, 20 Dec 2021 07:06:04 +0000 (+0000) Subject: Handle the new LDKTwelveBytes instead of LDKTenBytes X-Git-Tag: v0.0.104.0^2~5 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=51a98f34ee7843043a8e93ee45639beb66494fdd;p=ldk-java Handle the new LDKTwelveBytes instead of LDKTenBytes --- 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]"