* Creates a new CResult_NoneLightningErrorZ in the error state.
*/
public static Result_NoneLightningErrorZ err(org.ldk.structs.LightningError e) {
- long ret = bindings.CResult_NoneLightningErrorZ_err(e == null ? 0 : e.ptr);
+ long ret = bindings.CResult_NoneLightningErrorZ_err(e.ptr);
GC.KeepAlive(e);
if (ret >= 0 && ret <= 4096) { return null; }
Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);