X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FChannelTransactionParameters.mts;h=2435a057325dd8cae07b0b4d0a6929c45489240b;hp=c135d84b1e546fb1627aeb1bc43b4424d600ce53;hb=7d372e434499e36b8be0d090ef733a03650dec6e;hpb=d87886bb194886ef86d3597a5cdc142b6ccc89e9 diff --git a/ts/structs/ChannelTransactionParameters.mts b/ts/structs/ChannelTransactionParameters.mts index c135d84b..2435a057 100644 --- a/ts/structs/ChannelTransactionParameters.mts +++ b/ts/structs/ChannelTransactionParameters.mts @@ -279,7 +279,6 @@ import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScor import CommonBase from './CommonBase.mjs'; import * as bindings from '../bindings.mjs' -import * as InternalUtils from '../InternalUtils.mjs' export class ChannelTransactionParameters extends CommonBase { @@ -387,12 +386,13 @@ export class ChannelTransactionParameters extends CommonBase { } public write(): Uint8Array { - const ret: Uint8Array = bindings.ChannelTransactionParameters_write(this.ptr); - return ret; + const ret: number = bindings.ChannelTransactionParameters_write(this.ptr); + const ret_conv: Uint8Array = bindings.decodeUint8Array(ret); + return ret_conv; } public static constructor_read(ser: Uint8Array): Result_ChannelTransactionParametersDecodeErrorZ { - const ret: number = bindings.ChannelTransactionParameters_read(ser); + const ret: number = bindings.ChannelTransactionParameters_read(bindings.encodeUint8Array(ser)); const ret_hu_conv: Result_ChannelTransactionParametersDecodeErrorZ = Result_ChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }