Bindings updates
[ldk-java] / ts / structs / Pong.ts
index 3305de2acdb58a8b1ef9bacb9de58f04a9e930a3..63379926273f973d2bfc6cfb346a819abee8c5c0 100644 (file)
@@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public Pong clone() {
                number ret = bindings.Pong_clone(this.ptr);
                const ret_hu_conv: Pong = new Pong(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -36,6 +37,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public static Pong constructor_new(number byteslen_arg) {
                number ret = bindings.Pong_new(byteslen_arg);
                const ret_hu_conv: Pong = new Pong(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }