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