*/
public static Result_CommitmentTransactionDecodeErrorZ ok(CommitmentTransaction o) {
long ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
- if (ret < 1024) { return null; }
+ if (ret >= 0 && ret < 1024) { return null; }
Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
*/
public static Result_CommitmentTransactionDecodeErrorZ err(DecodeError e) {
long ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
- if (ret < 1024) { return null; }
+ if (ret >= 0 && ret < 1024) { return null; }
Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
*/
public Result_CommitmentTransactionDecodeErrorZ clone() {
long ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_clone(this.ptr);
- if (ret < 1024) { return null; }
+ if (ret >= 0 && ret < 1024) { return null; }
Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}