X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FRoutingFees.mts;h=d51cc65e14406f9eaa6f5e9b2819c2994222b509;hp=beca35c763d57cf005f9f0cec2d8619e21650233;hb=7d372e434499e36b8be0d090ef733a03650dec6e;hpb=d87886bb194886ef86d3597a5cdc142b6ccc89e9 diff --git a/ts/structs/RoutingFees.mts b/ts/structs/RoutingFees.mts index beca35c7..d51cc65e 100644 --- a/ts/structs/RoutingFees.mts +++ b/ts/structs/RoutingFees.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 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; }