@@ -61,7+65,7 @@ public class Shutdown : CommonBase {
* Constructs a new Shutdown given each field
*/
public static Shutdown of(byte[] channel_id_arg, byte[] scriptpubkey_arg) {
* Constructs a new Shutdown given each field
*/
public static Shutdown of(byte[] channel_id_arg, byte[] scriptpubkey_arg) {
- long ret = bindings.Shutdown_new(InternalUtils.check_arr_len(channel_id_arg, 32), scriptpubkey_arg);
+ long ret = bindings.Shutdown_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(scriptpubkey_arg));
GC.KeepAlive(channel_id_arg);
GC.KeepAlive(scriptpubkey_arg);
if (ret >= 0 && ret <= 4096) { return null; }
GC.KeepAlive(channel_id_arg);
GC.KeepAlive(scriptpubkey_arg);
if (ret >= 0 && ret <= 4096) { return null; }
@@ -109,16+113,18 @@ public class Shutdown : CommonBase {
* Serialize the Shutdown object into a byte array which can be read by Shutdown_read
*/
public byte[] write() {
* Serialize the Shutdown object into a byte array which can be read by Shutdown_read