Bindings updates
[ldk-java] / ts / structs / Route.ts
index d54afc71e9b622a61567df2fe901a3a57cd33884..e8d32809419fc467438833f22a9cbf6da29d564a 100644 (file)
@@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public Route clone() {
                number ret = bindings.Route_clone(this.ptr);
                const ret_hu_conv: Route = new Route(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -32,6 +33,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public static Route constructor_new(RouteHop[][] paths_arg) {
                number ret = bindings.Route_new((number[][])Arrays.stream(paths_arg).map(arr_conv_12 -> (number[])Arrays.stream(arr_conv_12).map(arr_conv_10 -> arr_conv_10 == null ? 0 : arr_conv_10.ptr & ~1).toArray()).toArray());
                const ret_hu_conv: Route = new Route(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
                /* TODO 2 RouteHop[]  */;
                return ret_hu_conv;
        }