Properly set CVec_u8Z to a byte[] which adds a ton more fn's
[ldk-java] / src / main / java / org / ldk / structs / UpdateFee.java
index 9756771bd8f6280f6514c103a4bd898c80c40cea..e915bad062d74b1961adaca4e07bedbdf739a957 100644 (file)
@@ -42,7 +42,12 @@ public class UpdateFee extends CommonBase {
                super(bindings.UpdateFee_new(channel_id_arg, feerate_per_kw_arg));
        }
 
-       // Skipped UpdateFee_write
+       public byte[] write(UpdateFee obj) {
+               byte[] ret = bindings.UpdateFee_write(obj == null ? 0 : obj.ptr & ~1);
+               this.ptrs_to.add(obj);
+               return ret;
+       }
+
        public UpdateFee(byte[] ser) {
                super(bindings.UpdateFee_read(ser));
        }