X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FHTLCUpdate.mts;fp=ts%2Fstructs%2FHTLCUpdate.mts;h=0f2ed22a74c289fcffb009efc131ff82aa9ea860;hb=f6d7282fcf6324519ea1fe4b584c8d02c95acd9e;hp=f02ffb07eb429918d44789f54c027f1c91796e19;hpb=7cbcc5ef17b8036b2e99980e227c7ca0d44dba7f;p=ldk-java diff --git a/ts/structs/HTLCUpdate.mts b/ts/structs/HTLCUpdate.mts index f02ffb07..0f2ed22a 100644 --- a/ts/structs/HTLCUpdate.mts +++ b/ts/structs/HTLCUpdate.mts @@ -363,12 +363,12 @@ import * as bindings from '../bindings.mjs' */ export class HTLCUpdate extends CommonBase { /* @internal */ - public constructor(_dummy: object, ptr: number) { + public constructor(_dummy: object, ptr: bigint) { super(ptr, bindings.HTLCUpdate_free); } - public clone_ptr(): number { - const ret: number = bindings.HTLCUpdate_clone_ptr(this.ptr); + public clone_ptr(): bigint { + const ret: bigint = bindings.HTLCUpdate_clone_ptr(this.ptr); return ret; } @@ -376,7 +376,7 @@ export class HTLCUpdate extends CommonBase { * Creates a copy of the HTLCUpdate */ public clone(): HTLCUpdate { - const ret: number = bindings.HTLCUpdate_clone(this.ptr); + const ret: bigint = bindings.HTLCUpdate_clone(this.ptr); const ret_hu_conv: HTLCUpdate = new HTLCUpdate(null, ret); CommonBase.add_ref_from(ret_hu_conv, this); return ret_hu_conv; @@ -395,7 +395,7 @@ export class HTLCUpdate extends CommonBase { * Read a HTLCUpdate from a byte array, created by HTLCUpdate_write */ public static constructor_read(ser: Uint8Array): Result_HTLCUpdateDecodeErrorZ { - const ret: number = bindings.HTLCUpdate_read(bindings.encodeUint8Array(ser)); + const ret: bigint = bindings.HTLCUpdate_read(bindings.encodeUint8Array(ser)); const ret_hu_conv: Result_HTLCUpdateDecodeErrorZ = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }