- TwoTuple<Uint8Array, ChannelMonitor>[] res_conv_38_arr = new TwoTuple[res.length];
- for (int m = 0; m < res.length; m++) {
- number res_conv_38 = res[m];
- Uint8Array res_conv_38_a = bindings.LDKC2Tuple_BlockHashChannelMonitorZ_get_a(res_conv_38);
- number res_conv_38_b = bindings.LDKC2Tuple_BlockHashChannelMonitorZ_get_b(res_conv_38);
- const res_conv_38_b_hu_conv: ChannelMonitor = new ChannelMonitor(null, res_conv_38_b);
- res_conv_38_b_hu_conv.ptrs_to.add(this);;
- TwoTuple<Uint8Array, ChannelMonitor> res_conv_38_conv = new TwoTuple<Uint8Array, ChannelMonitor>(res_conv_38_a, res_conv_38_b_hu_conv, () -> {
- bindings.C2Tuple_BlockHashChannelMonitorZ_free(res_conv_38);
- });
- res_conv_38_b_hu_conv.ptrs_to.add(res_conv_38_conv);
- res_conv_38_arr[m] = res_conv_38_conv;
+ TwoTuple_BlockHashChannelMonitorZ[] res_conv_35_arr = new TwoTuple_BlockHashChannelMonitorZ[res.length];
+ for (int j = 0; j < res.length; j++) {
+ number res_conv_35 = res[j];
+ TwoTuple_BlockHashChannelMonitorZ res_conv_35_hu_conv = new TwoTuple_BlockHashChannelMonitorZ(null, res_conv_35);
+ res_conv_35_hu_conv.ptrs_to.add(this);
+ res_conv_35_arr[j] = res_conv_35_hu_conv;