Skip to content

Commit c60ce25

Browse files
committed
Treat Txid as an alias for LDKThirtyTwoBytes
1 parent b79a176 commit c60ce25

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

genbindings.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ def java_c_types(fn_arg, ret_arr_len):
101101
assert var_is_arr_regex.match(fn_arg[8:])
102102
rust_obj = "LDKThirtyTwoBytes"
103103
arr_access = "data"
104+
elif fn_arg.startswith("LDKTxid"):
105+
fn_arg = "uint8_t (*" + fn_arg[8:] + ")[32]"
106+
assert var_is_arr_regex.match(fn_arg[8:])
107+
rust_obj = "LDKThirtyTwoBytes"
108+
arr_access = "data"
104109
elif fn_arg.startswith("LDKPublicKey"):
105110
fn_arg = "uint8_t (*" + fn_arg[13:] + ")[33]"
106111
assert var_is_arr_regex.match(fn_arg[8:])

0 commit comments

Comments
 (0)