X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_StringErrorZ.java;h=adefd2f7e95984c83d9a7e88f95b542cc0d9f0a9;hb=b9716bc7ee492882e4643c9365971fef3761989f;hp=9d5e14bebc89e5cd3e108cd58bb8b0545ac3e204;hpb=b0c50b891cbca28d3bd1d86276c132ff5221d8e4;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Result_StringErrorZ.java b/src/main/java/org/ldk/structs/Result_StringErrorZ.java index 9d5e14be..adefd2f7 100644 --- a/src/main/java/org/ldk/structs/Result_StringErrorZ.java +++ b/src/main/java/org/ldk/structs/Result_StringErrorZ.java @@ -4,6 +4,7 @@ import org.ldk.impl.bindings; import org.ldk.enums.*; import org.ldk.util.*; import java.util.Arrays; +import javax.annotation.Nullable; public class Result_StringErrorZ extends CommonBase { private Result_StringErrorZ(Object _dummy, long ptr) { super(ptr); } @@ -37,8 +38,9 @@ public class Result_StringErrorZ extends CommonBase { /** * Creates a new CResult_StringErrorZ in the success state. */ - public static Result_StringErrorZ ok(String o) { + public static Result_StringErrorZ ok(java.lang.String o) { long ret = bindings.CResult_StringErrorZ_ok(o); + if (ret < 1024) { return null; } Result_StringErrorZ ret_hu_conv = Result_StringErrorZ.constr_from_ptr(ret); return ret_hu_conv; } @@ -46,8 +48,9 @@ public class Result_StringErrorZ extends CommonBase { /** * Creates a new CResult_StringErrorZ in the error state. */ - public static Result_StringErrorZ err(Secp256k1Error e) { + public static Result_StringErrorZ err(org.ldk.enums.Secp256k1Error e) { long ret = bindings.CResult_StringErrorZ_err(e); + if (ret < 1024) { return null; } Result_StringErrorZ ret_hu_conv = Result_StringErrorZ.constr_from_ptr(ret); return ret_hu_conv; }