X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FTwoTuple_PublicKeyTypeZ.mts;h=96057fc54bcba4936ff59011804ef61139feb37f;hp=5bf3b1be1d33c152ed8d986cc0d241cf74d270c0;hb=7d372e434499e36b8be0d090ef733a03650dec6e;hpb=d87886bb194886ef86d3597a5cdc142b6ccc89e9 diff --git a/ts/structs/TwoTuple_PublicKeyTypeZ.mts b/ts/structs/TwoTuple_PublicKeyTypeZ.mts index 5bf3b1be..96057fc5 100644 --- a/ts/structs/TwoTuple_PublicKeyTypeZ.mts +++ b/ts/structs/TwoTuple_PublicKeyTypeZ.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 TwoTuple_PublicKeyTypeZ extends CommonBase { @@ -289,8 +288,9 @@ export class TwoTuple_PublicKeyTypeZ extends CommonBase { } public get_a(): Uint8Array { - const ret: Uint8Array = bindings.C2Tuple_PublicKeyTypeZ_get_a(this.ptr); - return ret; + const ret: number = bindings.C2Tuple_PublicKeyTypeZ_get_a(this.ptr); + const ret_conv: Uint8Array = bindings.decodeUint8Array(ret); + return ret_conv; } public get_b(): Type { @@ -313,7 +313,7 @@ export class TwoTuple_PublicKeyTypeZ extends CommonBase { } public static constructor_new(a: Uint8Array, b: Type): TwoTuple_PublicKeyTypeZ { - const ret: number = bindings.C2Tuple_PublicKeyTypeZ_new(InternalUtils.check_arr_len(a, 33), b == null ? 0 : CommonBase.get_ptr_of(b)); + const ret: number = bindings.C2Tuple_PublicKeyTypeZ_new(bindings.encodeUint8Array(bindings.check_arr_len(a, 33)), b == null ? 0 : CommonBase.get_ptr_of(b)); const ret_hu_conv: TwoTuple_PublicKeyTypeZ = new TwoTuple_PublicKeyTypeZ(null, ret); CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv); CommonBase.add_ref_from(ret_hu_conv, b);