Update auto-generated bindings
[ldk-java] / ts / structs / Result_PaymentSecretAPIErrorZ.ts
index bc1caa2e76f47562ededf8d1e044d5f55d603cea..906f575b5c7e5b19b35a1c8349da40e51bbe7ea2 100644 (file)
@@ -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);