X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FChannelInfo.mts;h=27d1fa2c36e4a879e571ae2fc7a29ea5fbb1e412;hp=a78e6b95c99f1fa4bbc59caee4befc4e506731d4;hb=7d372e434499e36b8be0d090ef733a03650dec6e;hpb=d87886bb194886ef86d3597a5cdc142b6ccc89e9 diff --git a/ts/structs/ChannelInfo.mts b/ts/structs/ChannelInfo.mts index a78e6b95..27d1fa2c 100644 --- a/ts/structs/ChannelInfo.mts +++ b/ts/structs/ChannelInfo.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 ChannelInfo extends CommonBase { @@ -378,12 +377,13 @@ export class ChannelInfo extends CommonBase { } public write(): Uint8Array { - const ret: Uint8Array = bindings.ChannelInfo_write(this.ptr); - return ret; + const ret: number = bindings.ChannelInfo_write(this.ptr); + const ret_conv: Uint8Array = bindings.decodeUint8Array(ret); + return ret_conv; } public static constructor_read(ser: Uint8Array): Result_ChannelInfoDecodeErrorZ { - const ret: number = bindings.ChannelInfo_read(ser); + const ret: number = bindings.ChannelInfo_read(bindings.encodeUint8Array(ser)); const ret_hu_conv: Result_ChannelInfoDecodeErrorZ = Result_ChannelInfoDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }