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