Update auto-generated bindings
[ldk-java] / ts / structs / Result_ChannelFeaturesDecodeErrorZ.ts
index 6a7620094f8fb5d8ae4d0cc16aecc40c4a2e5736..7864a54d581379ca4f5f6f7210c47ac2b882937a 100644 (file)
@@ -9,7 +9,7 @@ public class Result_ChannelFeaturesDecodeErrorZ extends CommonBase {
        }
 
        static Result_ChannelFeaturesDecodeErrorZ constr_from_ptr(long ptr) {
-               if (bindings.LDKCResult_ChannelFeaturesDecodeErrorZ_result_ok(ptr)) {
+               if (bindings.CResult_ChannelFeaturesDecodeErrorZ_is_ok(ptr)) {
                        return new Result_ChannelFeaturesDecodeErrorZ_OK(null, ptr);
                } else {
                        return new Result_ChannelFeaturesDecodeErrorZ_Err(null, ptr);
@@ -49,4 +49,9 @@ public class Result_ChannelFeaturesDecodeErrorZ extends CommonBase {
                return ret_hu_conv;
        }
 
+       public boolean is_ok() {
+               boolean ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_is_ok(this.ptr);
+               return ret;
+       }
+
 }