Bindings updates
[ldk-java] / ts / structs / Shutdown.ts
index 683f9025722f05de2e6c206aef453596c65b9691..0301af6b6890d0ecc899bd2255389e1be56d8bb5 100644 (file)
@@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public Shutdown clone() {
                number ret = bindings.Shutdown_clone(this.ptr);
                const ret_hu_conv: Shutdown = new Shutdown(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -45,6 +46,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public static Shutdown constructor_new(Uint8Array channel_id_arg, Uint8Array scriptpubkey_arg) {
                number ret = bindings.Shutdown_new(channel_id_arg, scriptpubkey_arg);
                const ret_hu_conv: Shutdown = new Shutdown(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }
 
@@ -56,6 +58,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public static Shutdown constructor_read(Uint8Array ser) {
                number ret = bindings.Shutdown_read(ser);
                const ret_hu_conv: Shutdown = new Shutdown(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }