- long ret = bindings.HTLCOutputInCommitment_new(offered_arg, amount_msat_arg, cltv_expiry_arg, payment_hash_arg, transaction_output_index_arg.ptr);
+ long ret = bindings.HTLCOutputInCommitment_new(offered_arg, amount_msat_arg, cltv_expiry_arg, InternalUtils.check_arr_len(payment_hash_arg, 32), transaction_output_index_arg.ptr);
+ Reference.reachabilityFence(offered_arg);
+ Reference.reachabilityFence(amount_msat_arg);
+ Reference.reachabilityFence(cltv_expiry_arg);
+ Reference.reachabilityFence(payment_hash_arg);
+ Reference.reachabilityFence(transaction_output_index_arg);