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