X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FResult_PaymentPreimageAPIErrorZ.mts;h=8426bdaf68e77d505902e28dba33516524a10bde;hp=fc7c842babcda6ca35b8ed36d3560ece3ac3d6e7;hb=7d372e434499e36b8be0d090ef733a03650dec6e;hpb=d87886bb194886ef86d3597a5cdc142b6ccc89e9 diff --git a/ts/structs/Result_PaymentPreimageAPIErrorZ.mts b/ts/structs/Result_PaymentPreimageAPIErrorZ.mts index fc7c842b..8426bdaf 100644 --- a/ts/structs/Result_PaymentPreimageAPIErrorZ.mts +++ b/ts/structs/Result_PaymentPreimageAPIErrorZ.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' @@ -296,7 +295,7 @@ export class Result_PaymentPreimageAPIErrorZ extends CommonBase { } } public static constructor_ok(o: Uint8Array): Result_PaymentPreimageAPIErrorZ { - const ret: number = bindings.CResult_PaymentPreimageAPIErrorZ_ok(InternalUtils.check_arr_len(o, 32)); + const ret: number = bindings.CResult_PaymentPreimageAPIErrorZ_ok(bindings.encodeUint8Array(bindings.check_arr_len(o, 32))); const ret_hu_conv: Result_PaymentPreimageAPIErrorZ = Result_PaymentPreimageAPIErrorZ.constr_from_ptr(ret); return ret_hu_conv; } @@ -330,7 +329,9 @@ export class Result_PaymentPreimageAPIErrorZ_OK extends Result_PaymentPreimageAP /* @internal */ public constructor(_dummy: object, ptr: number) { super(_dummy, ptr); - this.res = bindings.CResult_PaymentPreimageAPIErrorZ_get_ok(ptr); + const res: number = bindings.CResult_PaymentPreimageAPIErrorZ_get_ok(ptr); + const res_conv: Uint8Array = bindings.decodeUint8Array(res); + this.res = res_conv; } } export class Result_PaymentPreimageAPIErrorZ_Err extends Result_PaymentPreimageAPIErrorZ {