[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_ShutdownScriptInvalidShutdownScriptZ.java
index 324d467e640294b01df0b64d0ea1c9ede73d6827..200578d4a1b93e58c4b6d33ee859facdce5b094b 100644 (file)
@@ -46,10 +46,11 @@ public class Result_ShutdownScriptInvalidShutdownScriptZ extends CommonBase {
         * Creates a new CResult_ShutdownScriptInvalidShutdownScriptZ in the success state.
         */
        public static Result_ShutdownScriptInvalidShutdownScriptZ ok(ShutdownScript o) {
-               long ret = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o == null ? 0 : o.ptr & ~1);
+               long ret = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o == null ? 0 : o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ShutdownScriptInvalidShutdownScriptZ ret_hu_conv = Result_ShutdownScriptInvalidShutdownScriptZ.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(o);
                return ret_hu_conv;
        }
 
@@ -57,10 +58,11 @@ public class Result_ShutdownScriptInvalidShutdownScriptZ extends CommonBase {
         * Creates a new CResult_ShutdownScriptInvalidShutdownScriptZ in the error state.
         */
        public static Result_ShutdownScriptInvalidShutdownScriptZ err(InvalidShutdownScript e) {
-               long ret = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_err(e == null ? 0 : e.ptr & ~1);
+               long ret = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_err(e == null ? 0 : e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ShutdownScriptInvalidShutdownScriptZ ret_hu_conv = Result_ShutdownScriptInvalidShutdownScriptZ.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(e);
                return ret_hu_conv;
        }