Support passing trait instance references from C to Java without clone or double...
[ldk-java] / ts / structs / SignOrCreationError.ts
index c40ee79aa9c971289a1ba867d2c4d3a9cff2268b..27312a3ae4cb12f362fc34697af9457d618f77c4 100644 (file)
@@ -39,9 +39,22 @@ export class CreationError extends SignOrCreationError {
                return ret_hu_conv;
        }
 
+       public static SignOrCreationError constructor_sign_error() {
+               number ret = bindings.SignOrCreationError_sign_error();
+               SignOrCreationError ret_hu_conv = SignOrCreationError.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static SignOrCreationError constructor_creation_error(CreationError a) {
+               number ret = bindings.SignOrCreationError_creation_error(a);
+               SignOrCreationError ret_hu_conv = SignOrCreationError.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
        public boolean eq(SignOrCreationError b) {
                boolean ret = bindings.SignOrCreationError_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
-               this.ptrs_to.add(b);
                return ret;
        }