X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_ChannelUpdateDecodeErrorZ.java;h=a9849cdd81b8fe8cf28f484295435ee4ac1cb86d;hb=eab9331afd014558a982441138e222999a9955d1;hp=187b38236eff728191372bbef0e08c08f74ae545;hpb=5e9de82b3a7712a41189756d9d16d946142b2ac5;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Result_ChannelUpdateDecodeErrorZ.java b/src/main/java/org/ldk/structs/Result_ChannelUpdateDecodeErrorZ.java index 187b3823..a9849cdd 100644 --- a/src/main/java/org/ldk/structs/Result_ChannelUpdateDecodeErrorZ.java +++ b/src/main/java/org/ldk/structs/Result_ChannelUpdateDecodeErrorZ.java @@ -45,7 +45,7 @@ public class Result_ChannelUpdateDecodeErrorZ extends CommonBase { /** * Creates a new CResult_ChannelUpdateDecodeErrorZ in the success state. */ - public static Result_ChannelUpdateDecodeErrorZ ok(ChannelUpdate o) { + public static Result_ChannelUpdateDecodeErrorZ ok(org.ldk.structs.ChannelUpdate o) { long ret = bindings.CResult_ChannelUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr); Reference.reachabilityFence(o); if (ret >= 0 && ret <= 4096) { return null; } @@ -57,11 +57,12 @@ public class Result_ChannelUpdateDecodeErrorZ extends CommonBase { /** * Creates a new CResult_ChannelUpdateDecodeErrorZ in the error state. */ - public static Result_ChannelUpdateDecodeErrorZ err(DecodeError e) { + public static Result_ChannelUpdateDecodeErrorZ err(org.ldk.structs.DecodeError e) { long ret = bindings.CResult_ChannelUpdateDecodeErrorZ_err(e.ptr); Reference.reachabilityFence(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelUpdateDecodeErrorZ ret_hu_conv = Result_ChannelUpdateDecodeErrorZ.constr_from_ptr(ret); + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); }; return ret_hu_conv; }