X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_StringErrorZ.java;h=a9ef377676c41557455257b84878591c214a6546;hb=c6bac88847b7c09560af81f00ba8dd3c2ebe3a19;hp=9d5e14bebc89e5cd3e108cd58bb8b0545ac3e204;hpb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;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..a9ef3776 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 >= 0 && ret <= 4096) { 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 >= 0 && ret <= 4096) { return null; } Result_StringErrorZ ret_hu_conv = Result_StringErrorZ.constr_from_ptr(ret); return ret_hu_conv; }