@@ -62,7+64,7 @@ public class TxAckRbf : CommonBase {
* Constructs a new TxAckRbf given each field
*/
public static TxAckRbf of(byte[] channel_id_arg, org.ldk.structs.Option_i64Z funding_output_contribution_arg) {
* Constructs a new TxAckRbf given each field
*/
public static TxAckRbf of(byte[] channel_id_arg, org.ldk.structs.Option_i64Z funding_output_contribution_arg) {
- long ret = bindings.TxAckRbf_new(InternalUtils.check_arr_len(channel_id_arg, 32), funding_output_contribution_arg.ptr);
+ long ret = bindings.TxAckRbf_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), funding_output_contribution_arg.ptr);
GC.KeepAlive(channel_id_arg);
GC.KeepAlive(funding_output_contribution_arg);
if (ret >= 0 && ret <= 4096) { return null; }
GC.KeepAlive(channel_id_arg);
GC.KeepAlive(funding_output_contribution_arg);
if (ret >= 0 && ret <= 4096) { return null; }
@@ -111,16+113,18 @@ public class TxAckRbf : CommonBase {
* Serialize the TxAckRbf object into a byte array which can be read by TxAckRbf_read
*/
public byte[] write() {
* Serialize the TxAckRbf object into a byte array which can be read by TxAckRbf_read