X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FChannelTypeFeatures.mts;h=b83ae4070e7b7d1ce7e2770affcba74189f2f1a1;hp=085a86b40105dbdc217bcd9a864277457173ac08;hb=7d372e434499e36b8be0d090ef733a03650dec6e;hpb=d87886bb194886ef86d3597a5cdc142b6ccc89e9 diff --git a/ts/structs/ChannelTypeFeatures.mts b/ts/structs/ChannelTypeFeatures.mts index 085a86b4..b83ae407 100644 --- a/ts/structs/ChannelTypeFeatures.mts +++ b/ts/structs/ChannelTypeFeatures.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 ChannelTypeFeatures extends CommonBase { @@ -326,12 +325,13 @@ export class ChannelTypeFeatures extends CommonBase { } public write(): Uint8Array { - const ret: Uint8Array = bindings.ChannelTypeFeatures_write(this.ptr); - return ret; + const ret: number = bindings.ChannelTypeFeatures_write(this.ptr); + const ret_conv: Uint8Array = bindings.decodeUint8Array(ret); + return ret_conv; } public static constructor_read(ser: Uint8Array): Result_ChannelTypeFeaturesDecodeErrorZ { - const ret: number = bindings.ChannelTypeFeatures_read(ser); + const ret: number = bindings.ChannelTypeFeatures_read(bindings.encodeUint8Array(ser)); const ret_hu_conv: Result_ChannelTypeFeaturesDecodeErrorZ = Result_ChannelTypeFeaturesDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }