[Java] Properly convert strings to/from Modified UTF-8
[ldk-java] / src / main / java / org / ldk / structs / Result_ClosingSignedFeeRangeDecodeErrorZ.java
index 784acc1515d47a03c7f9718a7941e62ba4a231de..b3f37dbec9126f5f40f7c21936de6105200f6d63 100644 (file)
@@ -45,7 +45,7 @@ public class Result_ClosingSignedFeeRangeDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_ClosingSignedFeeRangeDecodeErrorZ in the success state.
         */
-       public static Result_ClosingSignedFeeRangeDecodeErrorZ ok(ClosingSignedFeeRange o) {
+       public static Result_ClosingSignedFeeRangeDecodeErrorZ ok(org.ldk.structs.ClosingSignedFeeRange o) {
                long ret = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o == null ? 0 : o.ptr);
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
@@ -57,11 +57,12 @@ public class Result_ClosingSignedFeeRangeDecodeErrorZ extends CommonBase {
        /**
         * Creates a new CResult_ClosingSignedFeeRangeDecodeErrorZ in the error state.
         */
-       public static Result_ClosingSignedFeeRangeDecodeErrorZ err(DecodeError e) {
+       public static Result_ClosingSignedFeeRangeDecodeErrorZ err(org.ldk.structs.DecodeError e) {
                long ret = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_ClosingSignedFeeRangeDecodeErrorZ ret_hu_conv = Result_ClosingSignedFeeRangeDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }