- const ret: number[] = bindings.ChainMonitor_get_claimable_balances(this.ptr, ignored_channels != null ? ignored_channels.map(ignored_channels_conv_16 => ignored_channels_conv_16 == null ? 0 : CommonBase.get_ptr_of(ignored_channels_conv_16) & ~1) : null);
- const ret_conv_9_arr: Balance[] = new Array(ret.length).fill(null);
- for (var j = 0; j < ret.length; j++) {
- const ret_conv_9: number = ret[j];
+ const ret: number = bindings.ChainMonitor_get_claimable_balances(this.ptr, bindings.encodeUint32Array(ignored_channels != null ? ignored_channels.map(ignored_channels_conv_16 => ignored_channels_conv_16 == null ? 0 : CommonBase.get_ptr_of(ignored_channels_conv_16) & ~1) : null));
+ const ret_conv_9_len: number = bindings.getArrayLength(ret);
+ const ret_conv_9_arr: Balance[] = new Array(ret_conv_9_len).fill(null);
+ for (var j = 0; j < ret_conv_9_len; j++) {
+ const ret_conv_9: number = bindings.getU32ArrayElem(ret, j);