X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_PayeePubKeyErrorZ.ts;h=1a5c93cdd3bf324af9fd75d1fe9f10f324e3ccdc;hb=0fee03a8095f5599f8eccd920c1b1af6b3a20260;hp=ddb146b9081a7e974d979a789482e216787c5008;hpb=f6c75b182a7786062a4966e8939701ef59092509;p=ldk-java diff --git a/ts/structs/Result_PayeePubKeyErrorZ.ts b/ts/structs/Result_PayeePubKeyErrorZ.ts index ddb146b9..1a5c93cd 100644 --- a/ts/structs/Result_PayeePubKeyErrorZ.ts +++ b/ts/structs/Result_PayeePubKeyErrorZ.ts @@ -9,7 +9,7 @@ public class Result_PayeePubKeyErrorZ extends CommonBase { } static Result_PayeePubKeyErrorZ constr_from_ptr(long ptr) { - if (bindings.LDKCResult_PayeePubKeyErrorZ_result_ok(ptr)) { + if (bindings.CResult_PayeePubKeyErrorZ_is_ok(ptr)) { return new Result_PayeePubKeyErrorZ_OK(null, ptr); } else { return new Result_PayeePubKeyErrorZ_Err(null, ptr); @@ -37,7 +37,6 @@ public class Result_PayeePubKeyErrorZ extends CommonBase { public static Result_PayeePubKeyErrorZ constructor_ok(PayeePubKey o) { number ret = bindings.CResult_PayeePubKeyErrorZ_ok(o == null ? 0 : o.ptr & ~1); Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret); - ret_hu_conv.ptrs_to.add(o); return ret_hu_conv; } @@ -47,6 +46,16 @@ public class Result_PayeePubKeyErrorZ extends CommonBase { return ret_hu_conv; } + public boolean is_ok() { + boolean ret = bindings.CResult_PayeePubKeyErrorZ_is_ok(this.ptr); + return ret; + } + + public number clone_ptr() { + number ret = bindings.CResult_PayeePubKeyErrorZ_clone_ptr(this.ptr); + return ret; + } + public Result_PayeePubKeyErrorZ clone() { number ret = bindings.CResult_PayeePubKeyErrorZ_clone(this.ptr); Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret);