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