Bindings updates
[ldk-java] / ts / structs / UpdateFailHTLC.ts
index c838d7c55e1567627f573c6659efd1544e631ae6..bf4a4763688188e7f05917c6ffa48df315b8bea9 100644 (file)
@@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public UpdateFailHTLC clone() {
                number ret = bindings.UpdateFailHTLC_clone(this.ptr);
                const ret_hu_conv: UpdateFailHTLC = new UpdateFailHTLC(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -50,6 +51,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public static UpdateFailHTLC constructor_read(Uint8Array ser) {
                number ret = bindings.UpdateFailHTLC_read(ser);
                const ret_hu_conv: UpdateFailHTLC = new UpdateFailHTLC(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }