Update auto-generated TypeScript Bindings
[ldk-java] / ts / structs / RoutingFees.mts
index beca35c763d57cf005f9f0cec2d8619e21650233..d51cc65e14406f9eaa6f5e9b2819c2994222b509 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 RoutingFees extends CommonBase {
@@ -331,18 +330,19 @@ export class RoutingFees extends CommonBase {
                return ret_hu_conv;
        }
 
-       public hash(): number {
-               const ret: number = bindings.RoutingFees_hash(this.ptr);
+       public hash(): bigint {
+               const ret: bigint = bindings.RoutingFees_hash(this.ptr);
                return ret;
        }
 
        public write(): Uint8Array {
-               const ret: Uint8Array = bindings.RoutingFees_write(this.ptr);
-               return ret;
+               const ret: number = bindings.RoutingFees_write(this.ptr);
+               const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
+               return ret_conv;
        }
 
        public static constructor_read(ser: Uint8Array): Result_RoutingFeesDecodeErrorZ {
-               const ret: number = bindings.RoutingFees_read(ser);
+               const ret: number = bindings.RoutingFees_read(bindings.encodeUint8Array(ser));
                const ret_hu_conv: Result_RoutingFeesDecodeErrorZ = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }