Update auto-generated bindings
[ldk-java] / ts / structs / Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.ts
index e1bab27531f6ef6a6315ce9d5090e65ed8e4c843..91789ad3bc162fc9f10ae130f282d91574a84108 100644 (file)
@@ -9,7 +9,7 @@ public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ extends CommonB
        }
 
        static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ constr_from_ptr(long ptr) {
-               if (bindings.LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_result_ok(ptr)) {
+               if (bindings.CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(ptr)) {
                        return new Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_OK(null, ptr);
                } else {
                        return new Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_Err(null, ptr);
@@ -46,8 +46,12 @@ public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ extends CommonB
        public static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ constructor_err(DecodeError e) {
                number ret = bindings.CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
                Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.constr_from_ptr(ret);
-               ret_hu_conv.ptrs_to.add(e);
                return ret_hu_conv;
        }
 
+       public boolean is_ok() {
+               boolean ret = bindings.CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(this.ptr);
+               return ret;
+       }
+
 }