if (bindings.CResult_PayeePubKeyErrorZ_is_ok(ptr)) {
return new Result_PayeePubKeyErrorZ_OK(null, ptr);
} else {
if (bindings.CResult_PayeePubKeyErrorZ_is_ok(ptr)) {
return new Result_PayeePubKeyErrorZ_OK(null, ptr);
} else {
* Creates a new CResult_PayeePubKeyErrorZ in the success state.
*/
public static constructor_ok(o: PayeePubKey): Result_PayeePubKeyErrorZ {
* Creates a new CResult_PayeePubKeyErrorZ in the success state.
*/
public static constructor_ok(o: PayeePubKey): Result_PayeePubKeyErrorZ {
* Creates a new CResult_PayeePubKeyErrorZ in the error state.
*/
public static constructor_err(e: Secp256k1Error): Result_PayeePubKeyErrorZ {
* Creates a new CResult_PayeePubKeyErrorZ in the error state.
*/
public static constructor_err(e: Secp256k1Error): Result_PayeePubKeyErrorZ {
- public clone_ptr(): number {
- const ret: number = bindings.CResult_PayeePubKeyErrorZ_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.CResult_PayeePubKeyErrorZ_clone_ptr(this.ptr);
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Result_PayeePubKeyErrorZ {
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Result_PayeePubKeyErrorZ {
const res_hu_conv: PayeePubKey = new PayeePubKey(null, res);
CommonBase.add_ref_from(res_hu_conv, this);
this.res = res_hu_conv;
const res_hu_conv: PayeePubKey = new PayeePubKey(null, res);
CommonBase.add_ref_from(res_hu_conv, this);
this.res = res_hu_conv;