Fix write method generation w/ upstream changes
[ldk-java] / src / main / java / org / ldk / structs / QueryShortChannelIds.java
index 3fb876512fa4134508021ce3d80351f9d9920473..e65af98faecc2f6513f8a9cac64d56b20ae56f28 100644 (file)
@@ -46,9 +46,8 @@ public class QueryShortChannelIds extends CommonBase {
                return ret_hu_conv;
        }
 
-       public byte[] write(QueryShortChannelIds obj) {
-               byte[] ret = bindings.QueryShortChannelIds_write(obj == null ? 0 : obj.ptr & ~1);
-               this.ptrs_to.add(obj);
+       public byte[] write() {
+               byte[] ret = bindings.QueryShortChannelIds_write(this.ptr);
                return ret;
        }