- long ret = bindings.Shutdown_new(channel_id_arg, scriptpubkey_arg);
- if (ret >= 0 && ret < 1024) { return null; }
- Shutdown ret_hu_conv = new Shutdown(null, ret);
+ long ret = bindings.Shutdown_new(InternalUtils.check_arr_len(channel_id_arg, 32), scriptpubkey_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Shutdown ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Shutdown(null, ret); }