@@ -59,7+63,7 @@ public class FundingSigned : CommonBase {
* Constructs a new FundingSigned given each field
*/
public static FundingSigned of(byte[] channel_id_arg, byte[] signature_arg) {
* Constructs a new FundingSigned given each field
*/
public static FundingSigned of(byte[] channel_id_arg, byte[] signature_arg) {
- long ret = bindings.FundingSigned_new(InternalUtils.check_arr_len(channel_id_arg, 32), InternalUtils.check_arr_len(signature_arg, 64));
+ long ret = bindings.FundingSigned_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(signature_arg, 64)));
GC.KeepAlive(channel_id_arg);
GC.KeepAlive(signature_arg);
if (ret >= 0 && ret <= 4096) { return null; }
GC.KeepAlive(channel_id_arg);
GC.KeepAlive(signature_arg);
if (ret >= 0 && ret <= 4096) { return null; }
@@ -107,16+111,18 @@ public class FundingSigned : CommonBase {
* Serialize the FundingSigned object into a byte array which can be read by FundingSigned_read
*/
public byte[] write() {
* Serialize the FundingSigned object into a byte array which can be read by FundingSigned_read
*/
public byte[] write() {
- byte[] ret = bindings.FundingSigned_write(this.ptr);
+ long ret = bindings.FundingSigned_write(this.ptr);