Update auto-generated bindings
[ldk-java] / ts / structs / Result_NoneSemanticErrorZ.ts
index b374cfd52001e5a000a2650d9f6f029d67ef2f57..ec49cdb350ef2596d459ea5b2c0797464ea4a8e2 100644 (file)
@@ -9,7 +9,7 @@ public class Result_NoneSemanticErrorZ extends CommonBase {
        }
 
        static Result_NoneSemanticErrorZ constr_from_ptr(long ptr) {
-               if (bindings.LDKCResult_NoneSemanticErrorZ_result_ok(ptr)) {
+               if (bindings.CResult_NoneSemanticErrorZ_is_ok(ptr)) {
                        return new Result_NoneSemanticErrorZ_OK(null, ptr);
                } else {
                        return new Result_NoneSemanticErrorZ_Err(null, ptr);
@@ -41,6 +41,16 @@ public class Result_NoneSemanticErrorZ extends CommonBase {
                return ret_hu_conv;
        }
 
+       public boolean is_ok() {
+               boolean ret = bindings.CResult_NoneSemanticErrorZ_is_ok(this.ptr);
+               return ret;
+       }
+
+       public number clone_ptr() {
+               number ret = bindings.CResult_NoneSemanticErrorZ_clone_ptr(this.ptr);
+               return ret;
+       }
+
        public Result_NoneSemanticErrorZ clone() {
                number ret = bindings.CResult_NoneSemanticErrorZ_clone(this.ptr);
                Result_NoneSemanticErrorZ ret_hu_conv = Result_NoneSemanticErrorZ.constr_from_ptr(ret);