@@ -67,7+71,7 @@ public class QueryShortChannelIds : CommonBase {
* Constructs a new QueryShortChannelIds given each field
*/
public static QueryShortChannelIds of(byte[] chain_hash_arg, long[] short_channel_ids_arg) {
* Constructs a new QueryShortChannelIds given each field
*/
public static QueryShortChannelIds of(byte[] chain_hash_arg, long[] short_channel_ids_arg) {
- long ret = bindings.QueryShortChannelIds_new(InternalUtils.check_arr_len(chain_hash_arg, 32), short_channel_ids_arg);
+ long ret = bindings.QueryShortChannelIds_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), InternalUtils.encodeUint64Array(short_channel_ids_arg));
GC.KeepAlive(chain_hash_arg);
GC.KeepAlive(short_channel_ids_arg);
if (ret >= 0 && ret <= 4096) { return null; }
GC.KeepAlive(chain_hash_arg);
GC.KeepAlive(short_channel_ids_arg);
if (ret >= 0 && ret <= 4096) { return null; }
@@ -115,7+119,7 @@ public class QueryShortChannelIds : CommonBase {
* Read a QueryShortChannelIds from a byte array, created by QueryShortChannelIds_write
*/
public static Result_QueryShortChannelIdsDecodeErrorZ read(byte[] ser) {
* Read a QueryShortChannelIds from a byte array, created by QueryShortChannelIds_write
*/
public static Result_QueryShortChannelIdsDecodeErrorZ read(byte[] ser) {
- long ret = bindings.QueryShortChannelIds_read(ser);
+ long ret = bindings.QueryShortChannelIds_read(InternalUtils.encodeUint8Array(ser));