Make genbindings.sh only build one of java/wasm, test wasm in CI
[ldk-java] / ts / structs / ChannelInfo.ts
index 2ae6c0e9591f4a87e0a778cd4593a7f028ff4eb5..19a1837936d72c45f008a5c5c752215f8f524795 100644 (file)
@@ -95,11 +95,9 @@ import * as bindings from '../bindings' // TODO: figure out location
                bindings.ChannelInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr & ~1);
        }
 
-       public static ChannelInfo constructor_new(ChannelFeatures features_arg, NodeId node_one_arg, DirectionalChannelInfo one_to_two_arg, NodeId node_two_arg, DirectionalChannelInfo two_to_one_arg, Option_u64Z capacity_sats_arg, ChannelAnnouncement announcement_message_arg) {
-               number ret = bindings.ChannelInfo_new(features_arg == null ? 0 : features_arg.ptr & ~1, node_one_arg == null ? 0 : node_one_arg.ptr & ~1, one_to_two_arg == null ? 0 : one_to_two_arg.ptr & ~1, node_two_arg == null ? 0 : node_two_arg.ptr & ~1, two_to_one_arg == null ? 0 : two_to_one_arg.ptr & ~1, capacity_sats_arg.ptr, announcement_message_arg == null ? 0 : announcement_message_arg.ptr & ~1);
-               const ret_hu_conv: ChannelInfo = new ChannelInfo(null, ret);
-               ret_hu_conv.ptrs_to.add(ret_hu_conv);
-               return ret_hu_conv;
+       public number clone_ptr() {
+               number ret = bindings.ChannelInfo_clone_ptr(this.ptr);
+               return ret;
        }
 
        public ChannelInfo clone() {