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 {
* 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;
}
}