projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unify tuple and result field getters and push them through map_fn
[ldk-java]
/
ts
/
structs
/
Result_SecretKeyErrorZ.ts
diff --git
a/ts/structs/Result_SecretKeyErrorZ.ts
b/ts/structs/Result_SecretKeyErrorZ.ts
index 29c5729121dfa3c25ed37ad9761294075dd3bf87..ae21d631dd85a216b56f65e33619b213a93932b8 100644
(file)
--- a/
ts/structs/Result_SecretKeyErrorZ.ts
+++ b/
ts/structs/Result_SecretKeyErrorZ.ts
@@
-9,7
+9,7
@@
public class Result_SecretKeyErrorZ extends CommonBase {
}
static Result_SecretKeyErrorZ constr_from_ptr(long ptr) {
}
static Result_SecretKeyErrorZ constr_from_ptr(long ptr) {
- if (bindings.
LDKCResult_SecretKeyErrorZ_result
_ok(ptr)) {
+ if (bindings.
CResult_SecretKeyErrorZ_is
_ok(ptr)) {
return new Result_SecretKeyErrorZ_OK(null, ptr);
} else {
return new Result_SecretKeyErrorZ_Err(null, ptr);
return new Result_SecretKeyErrorZ_OK(null, ptr);
} else {
return new Result_SecretKeyErrorZ_Err(null, ptr);
@@
-31,16
+31,21
@@
public class Result_SecretKeyErrorZ extends CommonBase {
}
}
}
}
- public static Result_SecretKeyErrorZ constructor_
_
ok(Uint8Array o) {
- number ret = bindings.CResult_SecretKeyErrorZ_ok(
o
);
+ public static Result_SecretKeyErrorZ constructor_ok(Uint8Array o) {
+ number ret = bindings.CResult_SecretKeyErrorZ_ok(
InternalUtils.check_arr_len(o, 32)
);
Result_SecretKeyErrorZ ret_hu_conv = Result_SecretKeyErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
Result_SecretKeyErrorZ ret_hu_conv = Result_SecretKeyErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
- public static Result_SecretKeyErrorZ constructor_
_
err(Secp256k1Error e) {
+ public static Result_SecretKeyErrorZ constructor_err(Secp256k1Error e) {
number ret = bindings.CResult_SecretKeyErrorZ_err(e);
Result_SecretKeyErrorZ ret_hu_conv = Result_SecretKeyErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
number ret = bindings.CResult_SecretKeyErrorZ_err(e);
Result_SecretKeyErrorZ ret_hu_conv = Result_SecretKeyErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
+ public boolean is_ok() {
+ boolean ret = bindings.CResult_SecretKeyErrorZ_is_ok(this.ptr);
+ return ret;
+ }
+
}
}