[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / SignOrCreationError.cs
index d4efde1186f00ae2ba116f3211c1da3d5da3ec04..f030d2dda2ddf22351d0142fd99bd485b50be883 100644 (file)
@@ -6,7 +6,7 @@ using System;
 namespace org { namespace ldk { namespace structs {
 
 /**
- * When signing using a fallible method either an user-supplied `SignError` or a `CreationError`
+ * When signing using a fallible method either an user-supplied `SignError` or a [`CreationError`]
  * may occur.
  */
 public class SignOrCreationError : CommonBase {
@@ -97,9 +97,11 @@ public class SignOrCreationError : CommonBase {
         * Get the string representation of a SignOrCreationError object
         */
        public string to_str() {
-               string ret = bindings.SignOrCreationError_to_str(this.ptr);
+               long ret = bindings.SignOrCreationError_to_str(this.ptr);
                GC.KeepAlive(this);
-               return ret;
+               if (ret >= 0 && ret <= 4096) { return null; }
+               string ret_conv = InternalUtils.decodeString(ret);
+               return ret_conv;
        }
 
 }