Update auto-generated bindings
[ldk-java] / ts / structs / HTLCUpdate.ts
index 52dd102ee00be0cbefd4f284162298633a226504..23f9d9a3d9509e19e19fc6e5f5cccbfeabba67b5 100644 (file)
@@ -18,9 +18,15 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.HTLCUpdate_free(this.ptr);
                     }
                 }
+       public number clone_ptr() {
+               number ret = bindings.HTLCUpdate_clone_ptr(this.ptr);
+               return ret;
+       }
+
        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 +35,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;
        }