@@ -56,7 +56,7 @@ def _do_map_type_with_info(self, ty_info, print_void, ret_arr_len, is_free, hold
5656 else :
5757 arg_conv = arg_conv + arr_name + "_ref." + ty_info .arr_access + " = " + self .consts .get_native_arr_contents (arr_name , "NO_DEST" , arr_name + "_ref." + arr_len , ty_info , False ) + ";"
5858 arg_conv_cleanup = self .consts .cleanup_native_arr_ref_contents (arr_name , arr_name + "_ref." + ty_info .arr_access , arr_name + "_ref." + arr_len , ty_info )
59- if ty_info .rust_obj == "LDKTransaction" :
59+ if ty_info .rust_obj == "LDKTransaction" or ty_info . rust_obj == "LDKWitness" :
6060 arg_conv = arg_conv + "\n " + arr_name + "_ref.data_is_owned = " + str (holds_ref ).lower () + ";"
6161 ret_conv = (ty_info .rust_obj + " " + arr_name + "_var = " , "" )
6262 ret_conv = (ret_conv [0 ], ";\n int8_tArray " + arr_name + "_arr = " + self .consts .create_native_arr_call (arr_name + "_var." + arr_len , ty_info ) + ";\n " )
@@ -501,7 +501,7 @@ def _do_map_type_with_info(self, ty_info, print_void, ret_arr_len, is_free, hold
501501 to_hu_conv = self .consts .var_decl_statement (ty_info .java_hu_ty , ty_info .var_name + "_hu_conv" , "new " + ty_info .java_hu_ty + "(null, " + ty_info .var_name + ")" ) + ";" + to_hu_conv_sfx ,
502502 to_hu_conv_name = ty_info .var_name + "_hu_conv" , from_hu_conv = from_hu_conv )
503503
504- # The manually-defined types - TxOut, BigEndianScalar, u5 , and Error
504+ # The manually-defined types - TxOut, BigEndianScalar, U5 , and Error
505505 if ty_info .rust_obj == "LDKError" :
506506 assert from_hu_conv is None
507507 return ConvInfo (ty_info = ty_info , arg_name = ty_info .var_name ,
@@ -510,7 +510,7 @@ def _do_map_type_with_info(self, ty_info, print_void, ret_arr_len, is_free, hold
510510 to_hu_conv = self .consts .var_decl_statement (ty_info .java_hu_ty , ty_info .var_name + "_conv" , "new " + ty_info .java_hu_ty + "(" + ty_info .var_name + ")" ) + ";" ,
511511 to_hu_conv_name = ty_info .var_name + "_conv" , from_hu_conv = ("0" , "" ))
512512
513- if ty_info .rust_obj == "LDKu5 " or ty_info .rust_obj == "LDKWitnessVersion" :
513+ if ty_info .rust_obj == "LDKU5 " or ty_info .rust_obj == "LDKWitnessVersion" :
514514 assert from_hu_conv is None
515515 return ConvInfo (ty_info = ty_info , arg_name = ty_info .var_name ,
516516 arg_conv = "" , arg_conv_name = "(" + ty_info .rust_obj + "){ ._0 = " + ty_info .var_name + " }" , arg_conv_cleanup = None ,
0 commit comments