Merge pull request #146 from TheBlueMatt/main
[ldk-java] / src / main / java / org / ldk / structs / Result_COption_TypeZDecodeErrorZ.java
index 7514dfbf5e83c131d9533e8dbb08ece72c6f7cab..210a7ef26c7b1e1f9ac96d0c6a2d49bdf6e442df 100644 (file)
@@ -45,22 +45,24 @@ public class Result_COption_TypeZDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_COption_TypeZDecodeErrorZ in the success state.
         */
-       public static Result_COption_TypeZDecodeErrorZ ok(Option_TypeZ o) {
+       public static Result_COption_TypeZDecodeErrorZ ok(org.ldk.structs.Option_TypeZ o) {
                long ret = bindings.CResult_COption_TypeZDecodeErrorZ_ok(o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_COption_TypeZDecodeErrorZ ret_hu_conv = Result_COption_TypeZDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(o); };
                return ret_hu_conv;
        }
 
        /**
         * Creates a new CResult_COption_TypeZDecodeErrorZ in the error state.
         */
-       public static Result_COption_TypeZDecodeErrorZ err(DecodeError e) {
+       public static Result_COption_TypeZDecodeErrorZ err(org.ldk.structs.DecodeError e) {
                long ret = bindings.CResult_COption_TypeZDecodeErrorZ_err(e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_COption_TypeZDecodeErrorZ ret_hu_conv = Result_COption_TypeZDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }