bindings.CommitmentSigned_free(this.ptr);
}
}
- public CommitmentSigned clone() {
- number ret = bindings.CommitmentSigned_clone(this.ptr);
- const ret_hu_conv: CommitmentSigned = new CommitmentSigned(null, ret);
- return ret_hu_conv;
- }
-
public Uint8Array get_channel_id() {
Uint8Array ret = bindings.CommitmentSigned_get_channel_id(this.ptr);
return ret;
public static CommitmentSigned constructor_new(Uint8Array channel_id_arg, Uint8Array signature_arg, Uint8Array[] htlc_signatures_arg) {
number ret = bindings.CommitmentSigned_new(channel_id_arg, signature_arg, htlc_signatures_arg);
const ret_hu_conv: CommitmentSigned = new CommitmentSigned(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ public CommitmentSigned clone() {
+ number ret = bindings.CommitmentSigned_clone(this.ptr);
+ const ret_hu_conv: CommitmentSigned = new CommitmentSigned(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
return ret;
}
- public static CommitmentSigned constructor_read(Uint8Array ser) {
+ public static Result_CommitmentSignedDecodeErrorZ constructor_read(Uint8Array ser) {
number ret = bindings.CommitmentSigned_read(ser);
- const ret_hu_conv: CommitmentSigned = new CommitmentSigned(null, ret);
+ Result_CommitmentSignedDecodeErrorZ ret_hu_conv = Result_CommitmentSignedDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}