[Java] Update batteries and tests to LDK 0.0.117
[ldk-java] / src / main / java / org / ldk / structs / Result_UnsignedChannelUpdateDecodeErrorZ.java
index 6e7b9f463dd99abd83982db17d1959d43e5dde43..1bfcff676843424c94908261cd78f839aa3104d2 100644 (file)
@@ -45,7 +45,7 @@ public class Result_UnsignedChannelUpdateDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_UnsignedChannelUpdateDecodeErrorZ in the success state.
         */
-       public static Result_UnsignedChannelUpdateDecodeErrorZ ok(UnsignedChannelUpdate o) {
+       public static Result_UnsignedChannelUpdateDecodeErrorZ ok(org.ldk.structs.UnsignedChannelUpdate o) {
                long ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
@@ -57,11 +57,12 @@ public class Result_UnsignedChannelUpdateDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_UnsignedChannelUpdateDecodeErrorZ in the error state.
         */
-       public static Result_UnsignedChannelUpdateDecodeErrorZ err(DecodeError e) {
+       public static Result_UnsignedChannelUpdateDecodeErrorZ err(org.ldk.structs.DecodeError e) {
                long ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_err(e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }