Update auto-generated bindings with new upstream.
[ldk-java] / ts / structs / HTLCUpdate.ts
index 52dd102ee00be0cbefd4f284162298633a226504..3eaef5532f1a26052442c082f54cff93ddcd4ca3 100644 (file)
@@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public HTLCUpdate clone() {
                number ret = bindings.HTLCUpdate_clone(this.ptr);
                const ret_hu_conv: HTLCUpdate = new HTLCUpdate(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -29,9 +30,9 @@ import * as bindings from '../bindings' // TODO: figure out location
                return ret;
        }
 
-       public static HTLCUpdate constructor_read(Uint8Array ser) {
+       public static Result_HTLCUpdateDecodeErrorZ constructor_read(Uint8Array ser) {
                number ret = bindings.HTLCUpdate_read(ser);
-               const ret_hu_conv: HTLCUpdate = new HTLCUpdate(null, ret);
+               Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }