Drop old manual implementations of the `Tx{In,Out}` getters
[ldk-java] / src / main / java / org / ldk / structs / Result_NoneSendErrorZ.java
index 9aed4238dfb9fcd273eb6518165663b3146b37d4..fa693646616e12bd06a936f457cc6db4d6f3ad88 100644 (file)
@@ -50,11 +50,12 @@ public class Result_NoneSendErrorZ extends CommonBase {
        /**
         * Creates a new CResult_NoneSendErrorZ in the error state.
         */
-       public static Result_NoneSendErrorZ err(SendError e) {
+       public static Result_NoneSendErrorZ err(org.ldk.structs.SendError e) {
                long ret = bindings.CResult_NoneSendErrorZ_err(e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_NoneSendErrorZ ret_hu_conv = Result_NoneSendErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }