Update auto-generated TypeScript Bindings
[ldk-java] / ts / structs / InvoiceFeatures.mts
index 51705bb27377d1f1f9b8f5311313a0ee092ddc1a..e292f065f0545724f2c100204b015cf160108816 100644 (file)
@@ -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 InvoiceFeatures extends CommonBase {
@@ -326,12 +325,13 @@ export class InvoiceFeatures extends CommonBase {
        }
 
        public write(): Uint8Array {
-               const ret: Uint8Array = bindings.InvoiceFeatures_write(this.ptr);
-               return ret;
+               const ret: number = bindings.InvoiceFeatures_write(this.ptr);
+               const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
+               return ret_conv;
        }
 
        public static constructor_read(ser: Uint8Array): Result_InvoiceFeaturesDecodeErrorZ {
-               const ret: number = bindings.InvoiceFeatures_read(ser);
+               const ret: number = bindings.InvoiceFeatures_read(bindings.encodeUint8Array(ser));
                const ret_hu_conv: Result_InvoiceFeaturesDecodeErrorZ = Result_InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }