X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_PaymentSecretAPIErrorZ.ts;h=906f575b5c7e5b19b35a1c8349da40e51bbe7ea2;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=bc1caa2e76f47562ededf8d1e044d5f55d603cea;hpb=e30b350e325e7d517ea744578876d473839ad495;p=ldk-java diff --git a/ts/structs/Result_PaymentSecretAPIErrorZ.ts b/ts/structs/Result_PaymentSecretAPIErrorZ.ts index bc1caa2e..906f575b 100644 --- a/ts/structs/Result_PaymentSecretAPIErrorZ.ts +++ b/ts/structs/Result_PaymentSecretAPIErrorZ.ts @@ -9,7 +9,7 @@ public class Result_PaymentSecretAPIErrorZ extends CommonBase { } static Result_PaymentSecretAPIErrorZ constr_from_ptr(long ptr) { - if (bindings.LDKCResult_PaymentSecretAPIErrorZ_result_ok(ptr)) { + if (bindings.CResult_PaymentSecretAPIErrorZ_is_ok(ptr)) { return new Result_PaymentSecretAPIErrorZ_OK(null, ptr); } else { return new Result_PaymentSecretAPIErrorZ_Err(null, ptr); @@ -35,7 +35,7 @@ public class Result_PaymentSecretAPIErrorZ extends CommonBase { } public static Result_PaymentSecretAPIErrorZ constructor_ok(Uint8Array o) { - number ret = bindings.CResult_PaymentSecretAPIErrorZ_ok(o); + number ret = bindings.CResult_PaymentSecretAPIErrorZ_ok(InternalUtils.check_arr_len(o, 32)); Result_PaymentSecretAPIErrorZ ret_hu_conv = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret); return ret_hu_conv; } @@ -46,6 +46,16 @@ public class Result_PaymentSecretAPIErrorZ extends CommonBase { return ret_hu_conv; } + public boolean is_ok() { + boolean ret = bindings.CResult_PaymentSecretAPIErrorZ_is_ok(this.ptr); + return ret; + } + + public number clone_ptr() { + number ret = bindings.CResult_PaymentSecretAPIErrorZ_clone_ptr(this.ptr); + return ret; + } + public Result_PaymentSecretAPIErrorZ clone() { number ret = bindings.CResult_PaymentSecretAPIErrorZ_clone(this.ptr); Result_PaymentSecretAPIErrorZ ret_hu_conv = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);