Clone objects being returned from trait methods before return from Java
[ldk-java] / ts / structs / Result_PayeePubKeyErrorZ.ts
index ccb5a5b1d5c78a1ea7d5fe1031e83700cd547cb7..871d8843e180485e33a2230c07609e9e9af2d047 100644 (file)
@@ -34,20 +34,19 @@ public class Result_PayeePubKeyErrorZ extends CommonBase {
                }
        }
 
-       public static Result_PayeePubKeyErrorZ constructor__ok(PayeePubKey o) {
+       public static Result_PayeePubKeyErrorZ constructor_ok(PayeePubKey o) {
                number ret = bindings.CResult_PayeePubKeyErrorZ_ok(o == null ? 0 : o.ptr & ~1);
                Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret);
-               ret_hu_conv.ptrs_to.add(o);
                return ret_hu_conv;
        }
 
-       public static Result_PayeePubKeyErrorZ constructor__err(Secp256k1Error e) {
+       public static Result_PayeePubKeyErrorZ constructor_err(Secp256k1Error e) {
                number ret = bindings.CResult_PayeePubKeyErrorZ_err(e);
                Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }
 
-       public Result_PayeePubKeyErrorZ _clone() {
+       public Result_PayeePubKeyErrorZ clone() {
                number ret = bindings.CResult_PayeePubKeyErrorZ_clone(this.ptr);
                Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;