[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_CommitmentTransactionDecodeErrorZ.java
index 9c872797d13471c55e972cce08249482cb03af6e..76678e81ad02ab5bbf13088519af875520efbbcb 100644 (file)
@@ -45,7 +45,7 @@ public class Result_CommitmentTransactionDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_CommitmentTransactionDecodeErrorZ in the success state.
         */
-       public static Result_CommitmentTransactionDecodeErrorZ ok(CommitmentTransaction o) {
+       public static Result_CommitmentTransactionDecodeErrorZ ok(org.ldk.structs.CommitmentTransaction o) {
                long ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_ok(o == null ? 0 : o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
@@ -57,11 +57,12 @@ public class Result_CommitmentTransactionDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_CommitmentTransactionDecodeErrorZ in the error state.
         */
-       public static Result_CommitmentTransactionDecodeErrorZ err(DecodeError e) {
+       public static Result_CommitmentTransactionDecodeErrorZ err(org.ldk.structs.DecodeError e) {
                long ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_err(e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }